- Clear NPM's cache:
sudo npm cache clean -f
- Install a little helper called 'n'
sudo npm install -g n
- Install latest stable Node.js version
sudo n stable
Alternatively pick a specific version and install like this:
sudo n 0.8.20
For production environments you might want to pay attention to version numbering and be picky about odd/even numbers.
Credits
- General procedure: D.Walsh
- Stable/unstable versions: P.Teixeira
0 comments:
Post a Comment