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:
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!