Skip to content

Instantly share code, notes, and snippets.

@nicohq
Last active August 29, 2015 14:17
Show Gist options
  • Save nicohq/8fb82bc39ec52b861a92 to your computer and use it in GitHub Desktop.
Save nicohq/8fb82bc39ec52b861a92 to your computer and use it in GitHub Desktop.
Nodejs update

Fortunately there is a very easy way of managing your node version, using the Node binary manager module ‘n’.

1.Check your current version of Node.
$node -v v0.6.12
2.Clear your npm cache
sudo npm cache clean -f
3.Install ‘n’
sudo npm install -g n 4.Upgrade to a later version (this step can take a while) You can specify a particular version like so:
sudo n 0.8.11
Or you can just tell the manager to install the latest stable version like so:
sudo n stable
5.Check the running version of Node to verify that it has worked:
$node -v v0.8.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment