-
-
Notifications
You must be signed in to change notification settings - Fork 741
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
n now works on windows 10 (using windows subsystem for linux) #511
Comments
Worked for me, I used |
Should be I can confirm that this is working on the latest version of Windows 10 Pro! 🎉 Windows 10 Pro version 1803 build 17134.165 |
Anyone coming here who installed
On the off chance that you have the same problems that I did where the node version installed by If Now, when I Hope this helps more than it confuses! 🤷♂️ |
💻 Windows versionMicrosoft Windows [Version 10.0.18362.175]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Users\Virgil> ⭕️ WSL Distro$ lsb_release -ds
Ubuntu 18.04.2 LTS
$ uname -rom
4.4.0-18362-Microsoft x86_64 GNU/Linux ⚙️ Version of
|
Dude, you are awesome! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Here's how i did it, to avoid having to use sudo for either npm or n:
|
That looks like "normal" @jonathan-annett , exciting! |
For interest in changes which might be required to support more than WSL, PR for nvm to "Make it work on Windows with WSL, MSYS, Cygwin": nvm-sh/nvm#2391 |
I finally gave this a try myself, and it Just Worked using curl to get down I did not need to fix the ownership on the |
First cut at wording for README. Supported Platforms
|
Released updated README in v7.3.0, at last. 😄 |
n now works on Windows 10 (Windows Subsystem For Linux):
If enough people find that this works for them, the docs / README.md could be changed to reflect this.
Windows version
Windows 10 Home, Version 10.0.17134 Build 17134
Version of N
n --version output: 2.1.11
How I installed N
Start up windows subsystem for linux bash prompt by typing Win key followed by
wsl
Then, install using the following sequence:
IMPORTANT NOTE:
chown
command above to reflect your home directory in WSL.After restarting the WSL bash window:
Tried installing other node versions, using
And got:
The text was updated successfully, but these errors were encountered: