“Exclua todas as pastas Node_modules” Respostas de código

Remova todas as pastas Node_modules

//Find all Node Modules
find . -name 'node_modules' -type d -prune

//Remove Files
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
th3n00bc0d3r

Exclua todas as pastas Node_modules

This is for windows  - type on the command line to list all node_modules folders:
For /d /r . %d in (node_modules) Do @IF EXIST "%d" echo %d

To delete all the listed folders:
For /d /r . %d in (node_modules) Do @IF EXIST "%d" del /Q "%d"

The /Q flag is "Quiet mode" - Does not ask if ok to delete on global wildcard
Cheerful Chicken

Exclua todas as pastas Node_modules

Try https://github.com/voidcosmos/npkill

npx npkill
it will find all node_modules and let you remove them.
Xanthous Xenomorph

Respostas semelhantes a “Exclua todas as pastas Node_modules”

Perguntas semelhantes a “Exclua todas as pastas Node_modules”

Mais respostas relacionadas para “Exclua todas as pastas Node_modules” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código