rm -rf node_modules
或
npm cache clean --force
设置yarn 淘宝镜像
// 下载解压文件,删掉win64xxxx.zip(报错文件)
// 如果缺少dll,下载vcruntiime140.dll
开启代理 设置端口
解决方法:复制.yarnrc到项目中
淘宝镜像:
registry "https://registry.npm.taobao.org"
sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
electron_mirror "https://npm.taobao.org/mirrors/electron/"
puppeteer_download_host "https://npm.taobao.org/mirrors"