Reputation: 152216
With
npm uninstall --save package
we can remove package
from the project. But if it is under devDependencies
, it will be ignored. Is it possible to remove package from both kind of dependencies ?
I've also tried to combine those save
flags:
npm uninstall --save --save-dev package
but with no luck.
Upvotes: 1
Views: 807
Reputation: 5573
edit
You should be able to run
npm uninstall -SD package
to uninstall both types of dependencies.
From the docs:
This uninstalls a package, completely removing everything npm installed on its behalf.
See the docs here for more information.
Upvotes: 1