How to set the default node version using nvm

0
243
views

If you are using nvm for man­ag­ing nodejs(which is the rec­om­mended way), you can eas­ily ensure that the same ver­sion of nodejs is avail­able in all ter­mi­nal win­dows or tabs. Below are some help­ful com­mands to achieve that.

To check your cur­rent, active node version

node --version

To check whats node ver­sions are locally installed

nvm ls

To install a par­tic­u­lar node version

nvm install v7.3.0

To set a cer­tain node ver­sion as the default

nvm alias default v7.3.0

Read More : http://javascript.tutorialhorizon.com/2016/12/24/set-the-default-node-version-using-nvm/

LEAVE A REPLY

Please enter your comment!
Please enter your name here