For Ubuntu NVM (Node Version Manager) works best. Therefore, I will recommend NVM instead of others e.g (n).
Installation and usage is very simple. I will extract the steps from the NVM github repository page.
Run following commands to install nvm:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
Enable the nvm command by running:
source ~/.bashrc
To check proper installation run the following command
command -v nvm
It should output nvm. If correct output is generated then we can install different versions of node using the command:
nvm install v8.11.0
OR
nvm install v8.10.0
Now when a different node version is installed it can be used by using the command:
nvm use 8.10.0
Wednesday, 11 July 2018
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment