一行命令删除所有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"
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"