1.npm install -g rimraf; 2.切换到包含node_modules文件夹的目录,rimraf node_modules 转载于:https://my.oschina.net/u/3950671/blog/3050155