Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

set the default node version using nvm

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

Hope this helps!

You may also like...