How NPM upgrades itself

Source: Internet
Author: User

In fact, using NPM to upgrade a variety of plugins is very convenient, such as I want to upgrade the express framework, using the following command

NPM Update Express

If your Express is a global installation, then

NPM Update-g Express

You can also use the install command to reload, which is equivalent to update:

NPM Install-g Express

However, if you want to upgrade NPM itself, you will encounter a bit of a problem, because Nodejs comes with NPM, so you cannot upgrade NPM globally, you need to locally upgrade NPM in the Nodejs installation directory:

D:CD "program Files\nodejs" NPM update npm


How NPM upgrades itself

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.