[英]NodeJs npm WARN uninstall not installed in $HOME/node_modules
I have NodeJs module installed on /usr/lib/node_modules/ 我在/ usr / lib / node_modules /上安装了NodeJs模块
If i want to uninstall: $ npm remove <module>
如果要卸载:
$ npm remove <module>
I get this error message: 我收到此错误消息:
npm WARN uninstall not installed in /home/<user>/node_modules: "<module>"
OS: Manjaro Linux / 0.8.13rc1 / Ascella / XFCE 操作系统:Manjaro Linux / 0.8.13rc1 / Ascella / XFCE
Thanks! 谢谢!
Try this: 尝试这个:
$ npm remove -g <module>
Modules installed in /usr/lib/node_modules/
are global , meaning you must pass -g
( --global
) flag to npm in order to install/remove them. 安装在
/usr/lib/node_modules/
中的模块是全局的 ,这意味着必须将-g
(-- --global
)标志传递给npm才能安装/删除它们。 npm install <module>
installs modules locally by default. npm install <module>
默认在本地安装模块。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.