Categories
JavaScript Answers

How to uninstall all dependencies listed in package.json (NPM) with JavaScript?

Spread the love

To uninstall all dependencies listed in package.json (NPM) with JavaScript, we run npm uninstall.

For instance, we run

npm uninstall *

in the node_modules folder to uninstall all the modules installed in the folder.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *