如何在Node JS中卸载NPM模块?

為{幸葍}努か 提交于 2020-08-15 01:26:28

问题:

As commonly known, any npm module can be installed by running a simple command: npm install <module_name> . 众所周知,可以通过运行一个简单的命令来安装任何npm模块: npm install <module_name>

I have installed a few modules that I do not use anymore and I just want to get them off. 我已经安装了一些不再使用的模块,我只想把它们取下来。 I have a few questions regarding this: 我对此有一些疑问:

  • Do we have any command or process to uninstall a module from the root (something like npm uninstall <module_name> ) or will simply removing the module files do? 我们是否有任何命令或过程从根目录卸载模块(类似于npm uninstall <module_name> ),还是只是删除模块文件呢?

  • How does it affect us if we keep the unused modules? 如果我们保留未使用的模块,它将对我们有何影响?


解决方案:

参考一: https://stackoom.com/question/spCW/如何在Node-JS中卸载NPM模块
参考二: https://oldbug.net/q/spCW/How-to-uninstall-npm-modules-in-node-js
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!