ERROR: Failed to download Chromi

2018-12-06  本文已影响0人  flyween

https://github.com/GoogleChrome/puppeteer/issues/1597

使用国内Chromium源
https://npm.taobao.org/mirrors

# // > https://npm.taobao.org/mirrors
# // export PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors
# // set PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors

npm config set puppeteer_download_host=https://npm.taobao.org/mirrors
npm i puppeteer

或者用淘宝的cnpm 安装,自动使用国内源

npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm i puppeteer

还可以手动下载Chromium文件,解压后放在本地
https://npm.taobao.org/mirrors/chromium-browser-snapshots/


cnpm/cnpmjs.org#1246
storage.googleapis.com 整站代理:https://storage.googleapis.com.cnpmjs.org
https://npm.taobao.org/mirrors
cnpm/binary-mirror-config/package.json

上一篇下一篇

猜你喜欢

热点阅读