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