全局安装 rimraf:
rimraf
npm install rimraf -g
切换到包含 node_modules 文件夹的根目录,运行一下命令:
node_modules
rimraf node_modules
等等就好了。