yarn 安装错误:无法下载 Chromium [英] yarn install error:Failed to download Chromium
问题描述
Yarn 安装未能下载 Chromium.错误如下:
The Yarn install failed to download 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.
问题:
我可以手动下载 Chromium 吗?我可以从https://npm.taobao.org/mirrors/chromium-browser-snapshots/Win_x64/
下载,问题是:下载后应该放在哪里?
Question:
Can I download Chromium manually? 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?
推荐答案
如果您不打算运行依赖于 Chromium 的自动浏览器测试,您可以根据错误消息跳过安装:
If you don't intend to run the automated browser tests which depend upon Chromium, you can skip the install per the error message:
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true &&纱线
我最近也偶尔遇到过这个 yarn
安装超时,而且似乎没有 cache clear
或其他操作可以解决它.
I've occasionally encountered this yarn
install timeout recently as well, and no cache clear
or other manipulation has seemed to resolve it.
这篇关于yarn 安装错误:无法下载 Chromium的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!