Skip to content

Instantly share code, notes, and snippets.

@mateusreis
Created August 18, 2025 14:53
Show Gist options
  • Save mateusreis/e6e0938cfda28385c2bfb991bf2b7e5d to your computer and use it in GitHub Desktop.
Save mateusreis/e6e0938cfda28385c2bfb991bf2b7e5d to your computer and use it in GitHub Desktop.
Limpando projetos node velhos - Debian 13 - 2025
$ rm -rf node_modules package-lock.json
$ npm install
ou faz uma busca recursiva e remove os arquivos
$ find . -name "node_modules" -type d -exec rm -rf {} \;
$ find . -name "package-lock.json" -type f -exec rm -f {} \;
$ find . -name "yarn.lock" -type f -exec rm -f {} \;
$ find . -name "yarn-error.log" -type f -exec rm -f {} \;
$ find . -name "yarn-debug.log" -type f -exec rm -f {} \;
$ find . -name "yarn-metadata.json" -type f -exec rm -f {} \;
$ find . -name "yarn-error.json" -type f -exec rm -f {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment