Recently to use the development to use the Nodejs, so ran to the development machine run the next node, has been installed, deeply gratified, is what version? Run the next node-v again, the original is 0.6.x. It's an estimate of who did it earlier. So let's upgrade to node.
How do I upgrade the Nodejs version?
This is almost not a problem under Windows, directly to the next version of the EXE to run the installation, but how to upgrade under Linux? Go directly to the latest source package, make & makes install. But is there a more elegant way of wood? Here we introduce the Linux under Nodejs version management artifact n
N is a module of node, the author is TJ Holowaychuk (author of the famous Express framework)
Install N:
NPM install-g N
In a word, fix it. Then you can do it according to your needs:
To install the latest version of node:
N Latest
Installing the stable version
N Stable
View Installed Versions
N
Delete the specified version
N RM 0.10.1
Specify a version to run the script
n Use 0.10.1
So easy, mom no longer has to worry about my Nodejs version management issues. The same kind of East also has a called NVM (Node Version Manager), it is implemented through the shell script, interested students can go to see.
Linux upgrade Nodejs and multi-version management