由于node.js依赖问题,经常出现node_modules文件夹层次过深,从而导致windows无法直接删除。可以全局安装rimraf来解决:
npm install rimraf -g
用法:
rimraf node_modules