nvmw icon indicating copy to clipboard operation
nvmw copied to clipboard

download issue

Open prui opened this issue 9 years ago • 4 comments

use in windows: first i found the url which to download node is wrong,and i fix it : no 'https://nodejs.org/dist/v5.2.0/x64/' buy ' https://nodejs.org/dist/v5.2.0/win-x64/' But it still have a error: Start install npm Download file from https://raw.githubusercontent.com/joyent/node/v5.2.0/deps/npm/package.json package.json node v5.2.0 does not include npm

prui avatar Apr 08 '16 07:04 prui

I rewrote line 44 in npm_get.js to

var pkgUri = util.format(NPM_PKG_JSON_URL, 'nodejs/node',

now it's failing somewhere in unzipping or getting npm or something (I aliased nvm="~/.nvmw/nvmw.bat") $ nvm install v4.4.3 x64 Start installing node/v4.4.3 (x64) to C:\Users\spaghet\.nvmw\v4.4.3 Download from https://nodejs.org/dist/v4.4.3/win-x64/node.exe, and save it as C:\Users\spaghet\.nvmw\v4.4.3\node.exe Done Start install npm Download file from https://raw.githubusercontent.com/nodejs/node/v4.4.3/deps/npm/package.json package.json Content length is 4.66kb Download 100%, 4.66kb / 4.66kb, 4.55mb/s ... Donwload done Download file from https://github.com/npm/npm/archive/v2.15.1.zip v2.15.1.zip Redirect: https://codeload.github.com/npm/npm/zip/v2.15.1 Download file from https://codeload.github.com/npm/npm/zip/v2.15.1 v2.15.1 Can't get 'content-length' Can't get npm: https://github.com/npm/npm/archive/v2.15.1.zip

sp4ghet avatar Apr 13 '16 17:04 sp4ghet

I added a console.log(res.headers['content-length']); after line 25 in wget.js which somehow fixed the problem, although I think it might work without it.

sp4ghet avatar Apr 13 '16 18:04 sp4ghet

nvmw doesn't seem to set the alias to node nor npm when I do nvmw use v4.4.3, so I guess there's something wrong there too...

sp4ghet avatar Apr 13 '16 18:04 sp4ghet

huge thanks to @Spaghet, really solved my problem

sebastian-hsu avatar Apr 15 '16 07:04 sebastian-hsu