Delete node_modules on Windows: Delete Windows Long Paths

10/22/2016 12:03:27 AM

This is a simple npm tool to delete long node_modules paths on windows.

 

http://www.nikola-breznjak.com/blog/javascript/nodejs/how-to-delete-node_modules-folder-on-windows-machine/

//install the tool - can be done anywhere (I think it global)
npm install rimraf -g

//navigate to the parent of node_modules
rimraf node_modules

//if that fails, go into node_modules and delete folders one by one
rimraf grunt-something-seomthing-stupid-long-name-thing