Languages

How can I uninstall npm package?

3 points
Asked by:
Dirask Admin - MR
1340

I installed the package with npm via npm install, how to uninstall it now?

1 answer
3 points
Answered by:
Dirask Admin - MR
1340

Use npm uninstall <package_name> from the project root folder.

You can also run this with different flags: 

  1. npm uninstall -S <package_name> - removes the package from dependencies in package.json.
  2. npm uninstall -D <package_name> - also removes the package from devDependencies in package.json.
  3. npm uninstall -g <package_name> - removes package globally 
0 comments Add comment
Native Advertising
­čÜÇ
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

ÔŁĄ´ŞĆ­čĺ╗ ­čÖé

Join