Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install n on Windows?

I just installed n on my Mac and everything is cool but is not installing on Windows. The process I did on Mac is:

sudo npm install -g n
sudo n 0.12.7

so what is the equivalent of doing that on Windows?

like image 606
Non Avatar asked Jul 28 '16 15:07

Non


2 Answers

Update: n can be installed on Windows Subsystem for Linux, just follow the basic installation procedure:

Previously: From the documentation:

(Unfortunately n is not supported on Windows yet. If you're able to make it work, send in a pull request!)

So there is no equivalent of doing that on Windows short of forking the source code and figuring out how to make it work.

like image 54
Quentin Avatar answered Oct 13 '22 00:10

Quentin


n can be installed on Windows now with Windows Subsystem for Linux. From N's document: "n is supported on macOS, Linux, including with Windows Subsystem for Linux, and various other unix-like systems. It is written as a BASH script but does not require you to use BASH as your command shell."

Reference: n document

like image 26
wei Avatar answered Oct 13 '22 01:10

wei