$HOME/node_modules 中未安装 NodeJs npm WARN 卸载
NodeJs npm WARN uninstall not installed in $HOME/node_modules
我在 /usr/lib/node_modules/
上安装了 NodeJs 模块
如果我要卸载:$ npm remove <module>
我收到此错误消息:
npm WARN uninstall not installed in /home/<user>/node_modules: "<module>"
OS: Manjaro Linux / 0.8.13rc1 / Ascella / XFCE
谢谢!
试试这个:
$ npm remove -g <module>
安装在 /usr/lib/node_modules/
中的模块是 global,这意味着您必须将 -g
(--global
) 标志传递给 npm 以便 install/remove 他们。 npm install <module>
默认在本地安装模块。
我在 /usr/lib/node_modules/
上安装了 NodeJs 模块如果我要卸载:$ npm remove <module>
我收到此错误消息:
npm WARN uninstall not installed in /home/<user>/node_modules: "<module>"
OS: Manjaro Linux / 0.8.13rc1 / Ascella / XFCE
谢谢!
试试这个:
$ npm remove -g <module>
安装在 /usr/lib/node_modules/
中的模块是 global,这意味着您必须将 -g
(--global
) 标志传递给 npm 以便 install/remove 他们。 npm install <module>
默认在本地安装模块。