如何在 node.js 中卸载带有 dev 依赖项的 npm 模块?
最佳答案
使用命令:
1) npm uninstall <name of the module>
您也可以使用:
1) npm uninstall <name of the module>
:从 node_modules 中删除模块,但不是 package.json
2) npm uninstall <name of the module> --save
:也将其从 package.json 中的依赖项中删除
3) npm uninstall <name of the module> --save-dev
:也将其从 package.json 中的 devDependencies 中删除
4) npm -g uninstall <name of the module> --save
: 全局删除
关于node.js - 如何在 node.js 中卸载具有开发依赖项的 npm 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56315357/