yarn puppeteer错误
error /app/node_modules/puppeteer: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /app/node_modules/puppeteer
Output:
ERROR: Failed to download Chromium r579032! Set “PUPPETEER_SKIP_CHROMIUM_DOWNLOAD” env variable to skip download.
{ Error: connect ETIMEDOUT 216.58.221.240:443
at Object._errnoException (util.js:992:11)
at _exceptionWithHostPort (util.js:1014:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)
code: ‘ETIMEDOUT’,
errno: ‘ETIMEDOUT’,
syscall: ‘connect’,
解决办法:
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true && yarn install
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 yinxianwei!
评论