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

download issue #75

Open
prui opened this issue Apr 8, 2016 · 4 comments
Open

download issue #75

prui opened this issue Apr 8, 2016 · 4 comments

Comments

@prui
Copy link

prui commented Apr 8, 2016

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

@sp4ghet
Copy link

sp4ghet commented Apr 13, 2016

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
Copy link

sp4ghet commented Apr 13, 2016

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
Copy link

sp4ghet commented Apr 13, 2016

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...

@sebastian-hsu
Copy link

huge thanks to @spaghet, really solved my problem

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

3 participants