delete all node_modules code example
Example 1: delete node_modules
rm -rf node_modules/
yarn install
Example 2: delete node module
npm uninstall node_module_name
Example 3: delete node_modules
rm -r node_modules
// run this from git bash
Example 4: remove node_modules folder mac
Open your terminal.
Browse to your master project directory or the top level of where you have a bunch of projects stored.
Run the command: find . -name "node_modules" -type d -prune -exec rm -rf '{}' +