nvmw icon indicating copy to clipboard operation
nvmw copied to clipboard

In China, download 404 Not Found

Open mishengqiang opened this issue 8 years ago • 12 comments

image

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

mishengqiang avatar Mar 23 '16 08:03 mishengqiang

Same here :)

asgerhallas avatar Mar 30 '16 18:03 asgerhallas

same problem with v4.4.2 x64

uolcano avatar Apr 09 '16 03:04 uolcano

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

CalvinDale avatar Apr 14 '16 18:04 CalvinDale

+1

juzhishang avatar Apr 15 '16 11:04 juzhishang

+1

ronycohen avatar Apr 17 '16 09:04 ronycohen

+1

wthinkit avatar Jul 12 '16 07:07 wthinkit

+1

uwang avatar Jul 23 '16 10:07 uwang

+1

7demo avatar Aug 27 '16 05:08 7demo

+1

cisen avatar Sep 10 '16 02:09 cisen

+1

chenjigeng avatar Oct 21 '16 15:10 chenjigeng

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); } }

Jaykin avatar Oct 26 '16 03:10 Jaykin

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

devsong avatar Nov 02 '16 08:11 devsong