- Keep reading on Running WordPress on ASP.NET Core with Peachpie
There are two ways as follows:-
- npm, uninstall global.
- npm, uninstall local.
Uninstall Local Packages
To uninstall a package that was installed locally (using
npm install <package> and stored in the
node_modules directory), use this command:
$ npm uninstall <package>
After that command is run, the package will no longer be in your
To also remove the package from the
dependencies list in your
package.json file, you can use either the
$ npm uninstall <package> --save $ npm uninstall -S <package>
If the package is a
devDependency, you can remove it from the
package.json file with the
$ npm uninstall <package> --save-dev $ npm uninstall -D <package>
Uninstall Global Packages
Last, you can remove any npm package you’ve installed globally with the
$ npm uninstall -g <package>
The global uninstall command will work from wherever you call it on your machine.
I hope you liked this article on how to uninstall npm package. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.