A one-line command to fix node. JS Version Upgrade

Source: Internet
Author: User

Node has a module called N (the name is short enough ...) ), which is specifically designed to manage the version of node. js.

Install the N module first:

?
1 npm install-g n

Step Two:

Upgrade node. js to the latest stable version

?
1 n stable

Isn't it simple?!

You can also follow the version number after n, for example:

?
1 n v0.10.26

Or

?
1 n 0.10.26

It's so simple, what can I do?!!

Also share several common commands from NPM

?
1234567891011121314151617 npm-v          #显示版本, Check that NPM is installed correctly.  npm install express   #安装express模块  npm install-g express  #全局安装express模块  npm list          #列出已安装模块  NPM show express      #显示模块详情  NPM update        # Upgrade all modules of the project under the current directory  NPM update express    #升级当前目录下的项目的指定模块  npm update-g express  #升级全局安装的express模块  NPM Uninstall express  #删除指定的模块

One-line command for node. JS Version Upgrade

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.