Languages
[Edit]
EN

Node.js - uninstall npm package

0 points
Created by:
Sujay
512

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
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
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