Linux upgrade Nodejs and multi-version management

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.