EN
Node.js - uninstall npm package
0
points
In this article, we would like to show you how to uninstall npm package in Node.js.
1. Uninstall npm package installed locally
Syntax:
npm uninstall package-name
Note:
Used with
--save(or-Sflag) this operation will also remove the reference in the package.json file.
Practical example:
npm uninstall -S bcrypt
2. Uninstall npm package installed globally
Syntax:
npm uninstall -g package-name
Practical example:
npm uninstall -g eslint
3. Uninstall npm package installed as development dependency (devDependencies)
Syntax:
npm uninstall -D package-name
Practical example:
npm uninstall -D nodemon