卸载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 <package-name>
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 package.json
file.
使用-S
标志或--save
,此操作还将删除package.json
文件