From ef9491c8d719627bc3123c6510846d2ef136d7cd Mon Sep 17 00:00:00 2001 From: Walter dos Santos Filho Date: Fri, 5 Apr 2019 14:07:44 -0300 Subject: [PATCH] Change URL for downloading npm in Cygwin. --- nodeenv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodeenv.py b/nodeenv.py index 6f26f60..e4bf509 100644 --- a/nodeenv.py +++ b/nodeenv.py @@ -785,7 +785,7 @@ def install_npm_win(env_dir, src_dir, opt): join(env_dir, 'bin', 'npm-cli.js')) shutil.copytree(join(bin_path, 'node_modules'), join(env_dir, 'bin', 'node_modules')) - npm_gh_url = 'https://raw.githubusercontent.com/npm/npm' + npm_gh_url = 'https://raw.githubusercontent.com/npm/cli' npm_bin_url = '{}/{}/bin/npm'.format(npm_gh_url, opt.npm) writefile(join(env_dir, 'bin', 'npm'), urlopen(npm_bin_url).read())