rm -rf node_modules/
npm install
rm -rf node_modules
rm -rf node_modules/
yarn install
rm -rf node_modules //when need to unstill node_modules folder
npm install //wen need to 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 uninstall node_module_name
npm install rimraf -g
rimraf node_modules
npkill
// then press space key
npx npkill
//This will list any node_modules directories in your system,
//You can then select which ones you want to erase to free up space
rm -rf node_modules
//Run inside parent directory.The command will delete the content
//of node_modules recursively
//then it will remove the node_modules folder too.
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