Trying to figure out how to uninstall a local or global npm package? We've got you covered!
Originally published at https://coderrocketfuel.com
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>
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.
Thanks for reading ❤
If you liked this post, share it with all of your programming buddies!
A Guide to Hire Node.js Developers who can help you create fast and efficient web applications. Also, know how much does it cost to hire Node.js Developers.
We are providing robust Node.JS Development Services with expert Node.js Developers. Get affordable Node.JS Web Development services from Skenix Infotech.
The practical implications of having Streams in Node.js are vast. Nodejs Streams are a great way to handle data chunks and uncomplicate development.
You may already be aware that Raygun uses Node.JS for our API nodes that receive your precious crash reporting data (we also do node.js crash reporting if you’re interested). We’ve peaked in the past at more than 110,000 requests per second coming...
🔥 Node.js Certification Training: https://www.edureka.co/nodejs-certification-training This Edureka video on 'Node.js Docker Tutorial' will help you in learn...