【问题】通过YARN 安装,Building fresh packages运行很久都没反应
直至NODE-SASS报错
【分析】百度后发现 node-sass一直报错
【结论】node-sass网络下载失败,找到C:\Users\Administrator\.yarnrc,删除此文件,然后
yarn config set registry https://registry.npm.taobao.org 类似方式设置以下代码
sass_binary_site项目
registry "https://registry.npm.taobao.org"
sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
phantomjs_cdnurl "http://cnpmjs.org/downloads"
electron_mirror "https://npm.taobao.org/mirrors/electron/"
sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs.com/"
profiler_binary_host_mirror "https://npm.taobao.org/mirrors/node-inspector/"
chromedriver_cdnurl "https://cdn.npm.taobao.org/dist/chromedriver"