Languages

Express.js - uninstall npm package

0 points
Asked by:
Cassia-Mendoza
415

How can I remove a npm package from my express.js project and package.json file?

I want to remove nodemon from dependencies in package.json and install it again as a devDependency.

1 answer
0 points
Answered by:
Cassia-Mendoza
415

Uninstall the package using:

npm uninstall <package_name>

And install it again as a devDependency with the following command:

npm install -D <package_name>

 

In your case it would be:

npm uninstall nodemon

then: 

npm install -D nodemon
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