Skip to content

How to quickly delete node_modules

Install rimraf globally:

npm install rimraf -g

Switch to the root directory that contains the node_modules folder, and run the following command:

rimraf node_modules

That's it.

This post is translated using ChatGPT, please feedback if any omissions.