You must install NVM or another node version manager, for example n , which has fewer github stars , but it was released later, it can only be installed with npm: npm install -g nand it contains a simpler api.
( nvm install n. , nvm n.)
NVM install script:
`curl https:`
$ git clone creationix/nvm
$HOME/.zshrc, $HOME/.bashrc, $HOME/.profile:
$ source path/to/.nvm/nvm.sh
NVM, node , , , .
:
$ nvm install 0.8
$ nvm install stable
$ nvm install unstable
$ nvm install 0.9.21
$ nvm alias work 0.9.21
$ nvm alias legacy 0.8
, stable unstable.
2014 :
v0.10.x stable.v0.11.x unstable ( / === /).v0.8.x legacy.v0.9.21 work.
: nvm use alias
nvm use work 0.9.21, nvm use stable v0.10.x NVM , , .
: nvm ls-remote.
node: nvm ls
NVM node : ~/.nvm, ~/.npm ~/.bower $ rm -rf
.
NVM , node $HOME/.nvm/, .nvm/bin , npm -g, $PATH.
nvm usage n usage .