Tuesday, June 23, 2015

upgrade nodejs

There is a very easy way of managing your node version, using the Node binary manager module ‘n’. Another one is 'nvm' node versioning manager.

sudo npm cache clean -f  [this one doesn't work well on my Mac OSX]
sudo npm install -g n [install node binary manager]
sudo n stable [install stable version, or specify version # here like 0.10.28]

With regard to installing node, I prefer to use the homebrew package manager to install node
brew install node

node -v [check node version]
n [to list out all current installed versions, and select node version]


No comments:

Post a Comment