问题:
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
来源:oschina
链接:https://my.oschina.net/u/4428122/blog/4318553