diff --git a/nodeenv.py b/nodeenv.py index e8a7704..56cfd14 100644 --- a/nodeenv.py +++ b/nodeenv.py @@ -403,10 +403,10 @@ def install_npm(env_dir, src_dir, opt): logger.info(' * Install npm.js (%s) ... ' % opt.npm, extra=dict(continued=True)) cmd = [ - '. %s && curl --silent %s | ' + '. %s && curl --location --silent %s | ' 'clean=%s npm_install=%s bash && deactivate_node' % ( pipes.quote(join(env_dir, 'bin', 'activate')), - 'https://npmjs.org/install.sh', + 'https://www.npmjs.org/install.sh', 'no' if opt.no_npm_clean else 'yes', opt.npm )