A tiny CLI tool to remove all node_modules folders from the current directory and all subdirectories.
npx rm-node-modulesnpm install -g rm-node-modulesFrom the directory you want to clean:
rm-node-modulesThis will:
- Start from the current directory
- Recursively search all subdirectories
- Delete every
node_modulesfolder it finds
This command permanently deletes node_modules folders.
Make sure:
- You run it in the correct directory
- You can reinstall dependencies with
npm install - omar and omardevelopment is not responsible for any lost folders or files due to this package