How to delete node_modules folder on Windows machine?

nodeTux

Due to its folder nesting Windows can’t delete the folder as its name is too long. To solve this, install RimRaf:

and delete the node_modules folder easily with:

 

edit: If you happen to get an “error” like this:

Don’t panic :), just try to run rimraf instead, as noted above. In most cases, all will be okay and you’ll be able to use it without a problem. If not, head to the comments, and we’ll take care of it together! For those who don’t care much about comments, here’s the post in which I address this node-inspector issue.

Written by Nikola Brežnjak