Languages
[Edit]
EN

Node.js - uninstall npm package

0 points
Created by:
Sujay
272

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 -S flag) 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
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