1.安装删除工具

npm install rimraf -g

2.删除命令

rimraf node_modules

好处:这样删除依赖更加干净,之后使用npm install 重新安装依赖即可