//安装rimraf包
npm install -g rimraf

//进入项目目录
cd demo

//使用rimraf命令删除node_modules
rimraf node_modules