NPM Common Instructions

Source: Internet
Author: User

Npm-h View the Help information for the NPM command

Npm-v or NPM--version view NPM version information

NPM Li or npm list view NPM installed modules

NPM Info <pkg> version View the latest release information for a module, such as NPM info underscore version

NPM Search <keyword> Find module information that matches keyword

NPM View <pkg> version See the latest release of a package

NPM Install <pkg> Install the specified module

NPM Install <pkg> @version Install the specified version of the module

NPM Install <pkg>--save will most likely install the latest version of the package and automatically update Package.json's dependencies while installing the package

NPM Install <pkg>--save-dev will most likely install the latest version of the package and automatically update Package.json's devdependencies while installing the package

NPM Install <pkg>--save-optional will most likely install the latest version of the package and automatically update Package.json's optionaldependencies while installing the package

NPM Install <pkg>--save-exact Saved dependencies would be configured with a exact version rather using NPM ' s default semver range operator.

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.