Question

I want to update my module sails from NPM.

But I can't find it, I'm not a pro Ubuntu/Linux so maybe there is a trick here.

user@tripanalyzer:~$ npm remove -g sails
npm WARN uninstall not installed in /usr/local/lib/node_modules: "sails"
user@tripanalyzer:~$ sails -v
info: v0.9.4

Where could it be if he is not here ? ^^ I probably installed it using "sudo" command. But I tried a sudo npm remove... and still the same.

Any idea?

Was it helpful?

Solution

If you didn't supply the -g argument when you installed sails, the package isn't installed as a global package, and thus cannot be removed with the -g keyword. From the warning message I would say this is the case.

Where exactly the package is installed then depends on "where" in your filesystem you were when you installed it.

If you have a project which uses the sails package, then check to see if the project has any locale nodes modules folder (or similar).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top