[英]yarn install error:Failed to download Chromium
The Yarn install failed to download Chromium. Yarn 安装无法下载 Chromium。 Error is as follows:
错误如下:
D:\workspace\www\ant-design-mobile-pro
λ yarn
yarn install v1.12.3
//...
Directory: D:\\workspace\\www\\ant-design-mobile-pro\\node_modules\\puppeteer
Output:
ERROR: Failed to download Chromium r599821! Set \"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD\" env variable to skip download.
{ Error: connect ETIMEDOUT 172.217.161.176:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: '172.217.161.176',
success Saved lockfile.
Done in 343.80s.
Question:题:
Can I download Chromium manually?我可以手动下载 Chromium 吗? I can download it from
https://npm.taobao.org/mirrors/chromium-browser-snapshots/Win_x64/
,the question is: Where should I put it after dowloading it?我可以从
https://npm.taobao.org/mirrors/chromium-browser-snapshots/Win_x64/
下载,问题是:下载后应该放在哪里?
If you don't intend to run the automated browser tests which depend upon Chromium, you can skip the install per the error message:如果您不打算运行依赖于 Chromium 的自动浏览器测试,您可以根据错误消息跳过安装:
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true && yarn
I've occasionally encountered this yarn
install timeout recently as well, and no cache clear
or other manipulation has seemed to resolve it.我最近也偶尔遇到过这种
yarn
安装超时,似乎没有cache clear
或其他操作可以解决它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.