Skip to main content

解决yarn依赖构建的连接超时

Puppter ETIMEDOUT

PUPPETEER_DOWNLOAD_HOST='https://npm.taobao.org/mirrors' yarn

附: SASS,Election,SQLite等依赖的国内源

使用方法:写到.yarnrc放到项目根目录再执行yarn安装依赖

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"