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

Update for Node v4.0.0 #58

Closed
joyeecheung opened this issue Sep 9, 2015 · 4 comments
Closed

Update for Node v4.0.0 #58

joyeecheung opened this issue Sep 9, 2015 · 4 comments

Comments

@joyeecheung
Copy link

The download path for Node v4.0.0 is https://nodejs.org/dist/v4.0.0/win-x64/node.exe and https://nodejs.org/dist/v4.0.0/win-x86/node.exe, so running nvmw install v4.0.0 fails because it tries to download from paths like https://nodejs.org/dist/v4.0.0/x64/node.exe.

@iZhen
Copy link

iZhen commented Sep 9, 2015

+1

TimothyGu added a commit to TimothyGu/nvmw that referenced this issue Sep 9, 2015
@djsylvester
Copy link

I used the bat file from the above reference (#59) and found there is one additional install issue.

Start install npm
Download file from...
node v4.0.0 does not include npm

I identified the version of npm required for node v4 from the changelog:
https://github.com/nodejs/node/blob/v4.0.0/CHANGELOG.md

My temporary fix is:

  1. Backup .nvmw/nvmw.bat
  2. Create a new nvmw.bat file from:
    https://github.com/TimothyGu/nvmw/blob/f652299d30e5f4583d6b68d6024da423fd1005d5/nvmw.bat
  3. Create .nvmw/v4.0.0 directory
  4. Grab the npm source zip of the latest stable release from https://github.com/npm/npm
  5. Rename the zip to npm.zip and place in the v.4.0.0 directory.
  6. Run nvmw install 4.0.0 x64 if you're using 64bit, else don't use the architecture option.

Node v4 will install and you'll still see the error about npm not included as above, immediately followed by:
Start unzip "C:\Users\[uname]\.nvmw\v4.0.0\npm.zip" to "C:\Users\[uname]\.nvmw\v4.0.0"

Done.

Note: This was written for 4.0.0 but is working for 4.1.0 as well so adjust accordingly as versions change.

@mikeallisonJS
Copy link

FYI, i had to put the npm.zip in the v4.0.0 directory. not the .nvmw directory. Thanks!

@djsylvester
Copy link

Thanks @Simplecoin I didn't catch the error. Corrected the post.

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

4 participants