How to uninstall the npm packages
In this tutorial, we are going to learn how to uninstall the npm packages in a project, locally or globally.
Uninstalling a single package
To uninstall a single package, we can use the
npm uninstall command followed by the package name.
npm uninstall body-parser
Similarly, we can uninstall the global installed package by adding a
npm -g uninstall nodemon
Uninstalling Multiple packages
To uninstall the multiple packages, we can use the
npm uninstall command followed by multiple package names separated by the spaces
npm uninstall express cors