1.快速删除命令转载自https://www.jianshu.com/p/1652a152a120
快速删除node_modules,这行代码是真的快,比你手动删 快多了
npm install rimraf -g
rimraf node_modules
npm cache clean --force
2.设置下载镜像
npm get registry
npm config set registry https://registry.npmjs.org/
npm config set registry https://registry.npm.taobao.org
yarn config set registry http://registry.npm.taobao.org/