gpt4 book ai didi

reactjs - yarn 安装错误:Failed to download Chromium

转载 作者:行者123 更新时间:2023-12-03 14:07:07 29 4
gpt4 key购买 nike

Yarn 安装无法下载 Chromium。错误如下:

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/下载,问题是:下载后应该放在哪里?

最佳答案

如果您不打算运行依赖于 Chromium 的自动浏览器测试,您可以根据错误消息跳过安装:

导出 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true && yarn

我最近也偶尔遇到这个yarn安装超时,并且没有缓存清除或其他操作似乎可以解决它。

关于reactjs - yarn 安装错误:Failed to download Chromium,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53283809/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com