Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newest NPM/NodeJS on WSL #1842

Closed
Huskynarr opened this issue Apr 1, 2017 · 16 comments
Closed

Newest NPM/NodeJS on WSL #1842

Huskynarr opened this issue Apr 1, 2017 · 16 comments

Comments

@Huskynarr
Copy link

We had the issue that we needed the newest npm and nodejs version to work with the official angular 2 cli.
Here is the way to install the newest nodejs/npm on WSL, tested today on March, 1st 2017 on latest Windows 10 release.

sudo apt-get autoremove --purge npm node nodejs
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g npm
@jackchammons
Copy link
Contributor

jackchammons commented Apr 5, 2017

@Huskynarr Could you run the ver command in CMD to get your exact version? Additionally, please take a look at our contributing.md for a list of other information that we need for this to be actionable.

I see no errors using these installation steps on the build that I am running.

@bbrala
Copy link

bbrala commented Apr 19, 2017

Just install nvm, it works fine on WSL

@Huskynarr
Copy link
Author

@jackchammons npm is in Version 3.5.2 , current stable 4.6.1. Under nodejs is actually stable 6.10.3, but installed is 4.2.6

Thats little BIt Outdated.

@bbrala on the first look it is good, i would testing more. ;)

@Muzical84
Copy link

I'm finding I can't install EmberJS in WLS because of the Node version; are there any plans to update Node to the current LTS version? How will that be rolled out to us?

WARN engine ember-cli@2.14.2: wanted: {"node":"^4.5 || 6.* || >= 7.*"} (current: {"node":"4.2.6","npm":"3.5.2"})

@sunilmut
Copy link
Member

@Muzical84 - WSL users are required to keep the user mode package version updated as per their requirements, just as they would do on a Linux box.

@bbrala
Copy link

bbrala commented Aug 26, 2017

Really, use nvm it is awesome. It will enable you to use any node version easily. :)

@ahmedu007
Copy link

@bbrala Just tried NVM on WSL, doesnt work properly. Downloads the latest version but unable to update it. node -v still showed the pervious versions. Installed it though the recommended procedure on top.

@bbrala
Copy link

bbrala commented Sep 18, 2017

That's weird. Can't check right now, but will have a look this weekend. From what I remember I had no problems updating and switching versions.

@leandrowilliam
Copy link

leandrowilliam commented May 3, 2018

nvm work too slow on WSL... see here

@therealkenc
Copy link
Collaborator

This one never made it out of "what version" let alone CONTRIBUTING.md.

@naneri
Copy link

naneri commented Nov 24, 2018

We had the issue that we needed the newest npm and nodejs version to work with the official angular 2 cli.
Here is the way to install the newest nodejs/npm on WSL, tested today on March, 1st 2017 on latest Windows 10 release.

sudo apt-get autoremove --purge npm node nodejs
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g npm

What is the last command for? I was able to use even without the last command.

@aloisdg
Copy link

aloisdg commented Dec 5, 2018

Note that you may have to restart wsl after installing nodejs. At least, it did work for me.

@aemonge
Copy link

aemonge commented Apr 25, 2019

I doens't works for me........

@warkentien2
Copy link

Worked for me!

sudo apt-get autoremove --purge npm node nodejs
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

You can find other node distributions at https://github.com/nodesource/distributions

@digitalextremist
Copy link

Thanks @warkentien2; as of right now, I'm showing npm 6.12.1 off the above.

@ggoldsch
Copy link

ggoldsch commented Jan 3, 2020

worked for me. npm --> 6.13.4

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

No branches or pull requests