Skip to content
This repository has been archived by the owner on Dec 24, 2018. It is now read-only.

In China, download 404 Not Found #74

Open
mishengqiang opened this issue Mar 23, 2016 · 12 comments
Open

In China, download 404 Not Found #74

mishengqiang opened this issue Mar 23, 2016 · 12 comments

Comments

@mishengqiang
Copy link

image

In China,taobao's mirrors is http://npm.taobao.org/mirrors/node/v4.1.1/win-x64/, path is win-x64 not x64.

@asgerhallas
Copy link

Same here :)

@uolcano
Copy link

uolcano commented Apr 9, 2016

same problem with v4.4.2 x64

@CalvinDale
Copy link

When I attempt to install this version of node, I get a 404:

D:\VS> nvmw install v5.1.1
Start installing node/v5.1.1 (x64) to C:\Users\ccraig\.nvmw\v5.1.1
Download from https://nodejs.org/dist/v5.1.1/x64/node.exe, and save it as C:\Users\ccraig\.nvmw\v5.1.1\node.exe
404 Not Found
Download C:\Users\ccraig\.nvmw\v5.1.1\node.exe from https://nodejs.org/dist/v5.1.1/x64/node.exe failed

This version exists at
https://nodejs.org/dist/v5.1.1/win-x64/node.exe

rather than at
https://nodejs.org/dist/v5.1.1/x64/node.exe

@juzhishang
Copy link

+1

6 similar comments
@ronycohen
Copy link

+1

@wthinkit
Copy link

+1

@uwang
Copy link

uwang commented Jul 23, 2016

+1

@7demo
Copy link

7demo commented Aug 27, 2016

+1

@cisen
Copy link

cisen commented Sep 10, 2016

+1

@chenjigeng
Copy link

+1

@Jaykin
Copy link

Jaykin commented Oct 26, 2016

For that matter, I have modified the some source code, nvmw can work normally. The following is the place where I modified.
1、nvmw.bat:The line 137 win-x64 instead of x64
2、fget.js:The line 48 ServerXMLHTTP instead of XMLHTTP
3、get_npm.js:in line 6 var NPM_PKG_JSON_URL = 'http://npm.taobao.org/mirrors/node/index.json';
in line 44 var pkgUri = NPM_PKG_JSON_URL;
in line 51 var _pkg = JSON.parse(pkg); for(var i = 0,n=_pkg.length;i<n;i++){ var obj = _pkg[i]; if(obj.version == binVersion){ downloadNpmZip(obj.npm); } }

@devsong
Copy link

devsong commented Nov 2, 2016

In china,modify the nvmw.bat, find this text

if %ARCH% == x32 ( set NODE_EXE_URL=%NVMW_NODEJS_ORG_MIRROR%/%NODE_VERSION%/node.exe ) else ( set NODE_EXE_URL=%NVMW_NODEJS_ORG_MIRROR%/%NODE_VERSION%/x64/node.exe ) )

and modify
set NODE_EXE_URL=%NVMW_NODEJS_ORG_MIRROR%/%NODE_VERSION%/x64/node.exe
to
set NODE_EXE_URL=%NVMW_NODEJS_ORG_MIRROR%/%NODE_VERSION%/win-x64/node.exe

works for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests