📌  相关文章
📜  递归删除 node_modules - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:01.303000             🧑  作者: Mango

代码示例2
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