delete all node_modules folders recursively windows
find . -name "node_modules" -type d -exec rm -rf '{}' +
4.17
6
npx npkill
Thank you!
6
0
4
1
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
Thank you!
1
0
Are there any code examples left?
New code examples in category Javascript