0

I have NodeJs module installed on /usr/lib/node_modules/

If i want to uninstall: $ 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

Thanks!

smed79
  • 15
  • 1
  • 11

1 Answers1

3

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. npm install <module> installs modules locally by default.

eush77
  • 3,870
  • 1
  • 23
  • 30