rm -rf node_modules/
npm install
rm -rf node_modules/
yarn install
rm -r node_modules
// run this from git bash
//go to folder and type key
npx npkill
rm -r node_modules
npm install rimraf -g
rimraf node_module
npm install rimraf -g
rimraf node_modules
npkill
// then press space key
To delete folders one by one and printing the folder being deleted,
use the below terminal command:
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' ;
robocopy /MIR c: est D:UserDataFolderToDelete > NUL