一行命令删除所有node_modules

linux

find . -name "node_modules" -type d -prune -exec rm -rf '{}' +

windows

FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" rm -rf "%d"
posted @ 2022-06-09 22:16  七つ一旋桜  阅读(160)  评论(0)    收藏  举报