Paulund

Delete All Node Module Folders

Here is a quick command you can use to clean up the node_modules on your computer.

This will find and remove all folders on your computer named node_modules. Allowing you to clean up folders in older projects. When you go to a project you're currently working on simply run npm i and you're back to where you were.

find . -name "node_modules" -exec rm -rf '{}' +