【问题标题】:NodeJs npm WARN uninstall not installed in $HOME/node_modulesNodeJs npm WARN 卸载未安装在 $HOME/node_modules
【发布时间】:2015-08-13 05:17:26
【问题描述】:

我在 /usr/lib/node_modules/ 上安装了 NodeJs 模块

如果我要卸载:$ npm remove <module>

我收到此错误消息:

npm WARN uninstall not installed in /home/<user>/node_modules: "<module>"

操作系统:Manjaro Linux / 0.8.13rc1 / Ascella / XFCE

谢谢!

【问题讨论】:

标签: linux node.js module npm uninstallation


【解决方案1】:

试试这个:

$ npm remove -g <module>

/usr/lib/node_modules/ 中安装的模块是全局,这意味着您必须将 -g (--global) 标志传递给 npm 才能安装/删除它们。 npm install &lt;module&gt; 默认在本地安装模块。

【讨论】:

    猜你喜欢
    • 2014-10-08
    • 1970-01-01
    • 2023-01-12
    • 2023-03-24
    • 2017-06-27
    • 1970-01-01
    • 2019-06-28
    • 1970-01-01
    • 2021-05-31
    相关资源
    最近更新 更多