How to Manage Node Versions
-
2. Installing N
Then to Install N Package on Arch
Simply run:Copysudo npm install -g n
-
3. Setting NodeJs Version
Now to Install & Manage Node.js Versions
And then Install and Set the Latest Version:Copysudo n latest
Next, Open a New Terminal Window and Check it:
Copynode --version
To switch back to the Lastest LTS Version:
Copysudo n lts
You can easily Setup any available one, like:
Copysudo n 12.13.0
For Help type:
Copyn --help
And for further Insight see the Official Documentation.
Contents