Quick install Nodejs
In this post you will learn how to easy install nodejs.(For unix)
It is recommended to install nodejs through **nvm** which helps you manage nodejs versions and switch between them.
Steps:
-
Use install script using wget
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
or install updated version of nvm from here.
- Check nvm installation by
command -v nvm
. It will show nvm as output. - Now to install latest version of nodejs run `nvm install stable’.
- It will show you installed nodejs version at the end.
You can switch between nodejs version using nvm use <version>
.