Detailed explanation of the steps to install and delete modules with npm

php中世界最好的语言
Release: 2018-05-21 13:59:56
Original
1623 people have browsed it

This time I bring you npmInstallationDeleteModule steps are explained in detail. What are theprecautionsfor npm to install and delete modules? Here are practical cases. Get up and take a look.

npm installation module

[npm install xxx] Use npm to install the xxx module to the directory where the current command line is located;

[npm install -g xxx] Use npm to install the global module xxx;

When installing locally, write the module into package.json:

【npm install xxx】Install but do not write to package.json;

【npm install xxx –save】Install and write to package.json’s “dependencies";

[npm install xxx –save-dev] Install and write it into "devDependencies" of package.json.

npm delete module

[npm uninstall xxx]Delete xxx module;

[npm uninstall -g xxx]Delete Global module xxx;

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Recommended reading:

How to deal with the 404 error reported by Tomcat when the Vue project webpack is packaged and deployed

Nodejs publishes itself Detailed explanation of the steps of npm package and making it into a command line tool

The above is the detailed content of Detailed explanation of the steps to install and delete modules with npm. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!