The best way to install Node JS on lubuntu (and linux in general) is by using NVM (Node Version Manager), because you can get the latest stable Node JS as well as the future release of Node JS with NVM, so it's more flexible to switch from one version to another. In this article i will show you how to install Node JS via NVM.
Step by step how to install Node JS using NVM
- run update command
-
sudo apt-get update
- install build essential
-
sudo apt-get install build-essential
- install curl
-
sudo apt-get install curl
- download nvm using curl
-
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
- run source ~/.bashrc command
-
source ~/.bashrc
- test nvm command, make sure it's working
-
nvm -v
- install node JS (LTS)
-
nvm install --lts
- done!
Using NVM, you can also install Node JS with specific version, like this:
nvm install v8.11.3
0 comments:
Post a Comment