Created
August 18, 2025 14:53
-
-
Save mateusreis/e6e0938cfda28385c2bfb991bf2b7e5d to your computer and use it in GitHub Desktop.
Limpando projetos node velhos - Debian 13 - 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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