ERROR: Failed to set up Chromium r901912! Set “PUPPETEER_SKIP_DOWNLOAD“ env variable to skip downloa

Posted vieber

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR: Failed to set up Chromium r901912! Set “PUPPETEER_SKIP_DOWNLOAD“ env variable to skip downloa相关的知识,希望对你有一定的参考价值。

报错原因

npm install puppeteer的时候报下面这个提示

ERROR: Failed to set up Chromium r901912! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
{ Error: read ETIMEDOUT
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27) errno: 'ETIMEDOUT', code: 'ETIMEDOUT', syscall: 'read' }

解决方案

export PUPPETEER_SKIP_DOWNLOAD='true'

这样再进行安装

npm i puppeteer

就可以成功安装了。

以上是关于ERROR: Failed to set up Chromium r901912! Set “PUPPETEER_SKIP_DOWNLOAD“ env variable to skip downloa的主要内容,如果未能解决你的问题,请参考以下文章

虚拟机重启网络失败:Error:Failed to start LSB: Bring up/down networking的解决方法

虚拟机重启网络失败:Error:Failed to start LSB: Bring up/down networking的解决方法

虚拟机重启网络失败:Error:Failed to start LSB: Bring up/down networking的解决方法

mongodb启动错误(Failed to set up listener: SocketException: Cannot assign requested address)

Failed to start LSB: Bring up/down networking 另外一个偏方

set interface ip address: failed to add 1 on loop1 which conflicts with