原文 https://www.npmjs.com/package/windows-node-deps-deleter#readme
windows-node-deps-deleter
Delete folders containing really long file paths from the Windows command line. (Often found in node_modules trees.)
Delete folders containing really long file paths (typically found in node_modules folders) from the command line on Windows.
(The default Windows Explorer and CMD.EXE tools fail to work on paths longer than a certain number of characters.)
NOTE: If you need this functionality from your Node application, use fs-extra (that's what wnddel uses under the covers).
usage
npm install -g windows-node-deps-deleter
wnddel dir1 <dir2 <... <dirN>>>
1: 对于win7 或win vista可以使用自带命令robcopy ,robocopy empty_dir will_delete_dir /purge