Sunday, 23 August 2015

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



https://github.com/creationix/nvm

if you use mac, use this script

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
and then, add ". ~/.nvm/nvm.sh"  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

Suggestion:

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