Managing Node.js Versions - 16 June 2011 - devops
As in our last post, we need to manage versions of http://nodejs.org/.
There are different solutions,
- install from source : instructions are here, but this is a git-clone,make,make install solution
- use macports:
sudo port install nodejs
- use n, which manages multiple node versions simultaneously
I Chose all three in turn, but I am now usign n. Use or install the latest official release:
sudo npm install -g n
n ls # list available node versions
n --latest # print the latest version available
n bin <version> # print the bin path
sudo n latest # install latest
n manages its installations in /usr/local/n/versions/
.