博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
卸载npm和安装npm_使用`npm uninstall`卸载npm软件包
阅读量:2504 次
发布时间:2019-05-11

本文共 1131 字,大约阅读时间需要 3 分钟。

卸载npm和安装npm

To uninstall a package you have previously installed locally (using npm install <package-name> in the node_modules folder, run

要卸载以前在本地 npm install <package-name> (使用node_modules文件夹中的npm install <package-name> ,请运行

npm uninstall 

from the project root folder (the folder that contains the node_modules folder).

从项目根文件夹(包含node_modules文件夹的文件夹)中。

Using the -S flag, or --save, this operation will also remove the reference in the .

使用-S标志或--save ,此操作还将删除中的引用。

If the package was a development dependency, listed in the devDependencies of the package.json file, you must use the -D / --save-dev flag to remove it from the file:

如果程序包是在package.json文件的devDependencies中列出的开发依赖关系,则必须使用-D / --save-dev标志将其从文件中删除:

npm uninstall -S 
npm uninstall -D

If the package is installed globally, you need to add the -g / --global flag:

如果软件包是全局安装的,则需要添加-g / --global标志:

npm uninstall -g 

for example:

例如:

npm uninstall -g webpack

and you can run this command from anywhere you want on your system because the folder where you currently are does not matter.

并且您可以在系统上的任何位置运行此命令,因为当前所在的文件夹无关紧要。

翻译自:

卸载npm和安装npm

转载地址:http://omqgb.baihongyu.com/

你可能感兴趣的文章
ios上架报错90080,90087,90209,90125 解决办法
查看>>
给button添加UAC的小盾牌图标
查看>>
如何退出 vim
查看>>
Robberies
查看>>
get post 提交
查看>>
PC和HOST之间文件传送
查看>>
R安装
查看>>
Next Permutation
查看>>
python菜鸟基础知识(二)
查看>>
Jquery 飘窗
查看>>
mysql 效率 inner join 与 where in
查看>>
linux 定时任务详解
查看>>
PowerShell 远程管理之 about_Remote_Troubleshooting
查看>>
创建Windows服务(Windows Services)N种方式总结
查看>>
Inno Setup入门(五)——添加readme文件
查看>>
openCv学习札记(二)—cv:Mat学习
查看>>
图像处理之哈哈镜的实现
查看>>
跟我一起学C++
查看>>
Android Studio Gradle
查看>>
网络中的「动态路由算法」,你了解吗?
查看>>