You can install node through multiple way . But the simplest way to install node is using NODE VERSION MANAGER(NVM) through which you can easily install node and also its easy to manage node version . you can install node in few step
- run this command
curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash
- change source for installing file by this command
source ~/.bashrc
- now check the version of NVM installed by
nvm --version
- for checking latest available version of node you can run this command in terminal
nvm ls-remote
-
All version is listed down in your terminal now you can install any of the version available you can use this command
nvm install v6.11.0
where v6.11.0 is the version of node you can change it accordingly. you can install more than one node version.
- Node with v6.11.0 is installed you need to use them by command
nvm use v6.11.0
you got the message “Now using node v6.11.0 (npm v3.10.10)”
Hope its worked for you. from onward you can easily install any available version of node and upgrade node version easily in your development server
Be the first to comment.