12.卸载模块和更新模块和搜索模块

转自:http://www.runoob.com/nodejs/nodejs-tutorial.html

卸载模块

我们可以使用以下命令来卸载 Node.js 模块。

$ npm uninstall express

卸载后,你可以到 /node_modules/ 目录下查看包是否还存在,或者使用以下命令查看:

$ npm ls

更新模块

我们可以使用以下命令更新模块:

$ npm update express

搜索模块

使用以下来搜索模块:

$ npm search express
原文地址:https://www.cnblogs.com/sharpest/p/8044397.html