如果只是node-sass报错的话,设置个国内镜像
1
| npm set sass_binary_site https://registry.npmmirror.com/mirrors/node-sass
|
还有其他的
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
npm set registry https://registry.npmmirror.com npm set disturl https://npmmirror.com/mirrors/node
npm set sass_binary_site https://registry.npmmirror.com/mirrors/node-sass npm set electron_mirror https://registry.npmmirror.com/mirrors/electron/ npm set puppeteer_download_host https://registry.npmmirror.com/mirrors npm set chromedriver_cdnurl https://registry.npmmirror.com/mirrors/chromedriver npm set operadriver_cdnurl https://registry.npmmirror.com/mirrors/operadriver npm set phantomjs_cdnurl https://registry.npmmirror.com/mirrors/phantomjs npm set selenium_cdnurl https://registry.npmmirror.com/mirrors/selenium npm set node_inspector_cdnurl https://registry.npmmirror.com/mirrors/node-inspector npm set sentrycli_cdnurl https://registry.npmmirror.com/mirrors/sentry-cli
npm cache clean --force
yarn config set registry https://registry.npmmirror.com yarn config set disturl https://npmmirror.com/mirrors/node
yarn config set sass_binary_site https://registry.npmmirror.com/mirrors/node-sass yarn config set electron_mirror https://registry.npmmirror.com/mirrors/electron/ yarn config set puppeteer_download_host https://registry.npmmirror.com/mirrors yarn config set chromedriver_cdnurl https://registry.npmmirror.com/mirrors/chromedriver yarn config set operadriver_cdnurl https://registry.npmmirror.com/mirrors/operadriver yarn config set phantomjs_cdnurl https://registry.npmmirror.com/mirrors/phantomjs yarn config set selenium_cdnurl https://registry.npmmirror.com/mirrors/selenium yarn config set node_inspector_cdnurl https://registry.npmmirror.com/mirrors/node-inspector yarn config set sentrycli_cdnurl https://registry.npmmirror.com/mirrors/sentry-cli
yarn cache clean
|