Sunday, 23 August 2015

how to install different version of nodejs. how install multi version of nodejs

if you use mac, use this script

curl -o- | bash
and then, add ". ~/.nvm/"  into your .bash_profile.

to apply the change, you need run:  source ~/.bash_profile.

you can choose a node version by:

nvm use 0.10


If you switch node from one version to another one, you should delete all npm packages which is "node_modules" folder.

If you restarted your pc, you should reset version again:  nvm use 0.10

No comments:

Post a comment