安装npm包–rimraf $ npm install rimraf -g 在所属文件夹下使用cmd指令下,进入所需删除的node_modules文件夹的位置,再输入指令 $ rimraf node_modules