简体   繁体   English

yarn 安装错误:无法下载 Chromium

[英]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.

相关问题 错误:无法下载 Chromium r686378! 设置“PUPPETEER_SKIP_CHROMIUM_DOWNLOAD”环境变量以跳过下载 - ERROR: Failed to download Chromium r686378! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download 纱线安装抛出错误:gyp动词`which`失败错误:未找到:python2 - Yarn install throws error: gyp verb `which` failed Error: not found: python2 react_on_rails安装:纱线是必需的错误 - react_on_rails install: yarn is required error => 错误 [5/5] 运行 npm 在 Dockerfile 中安装或纱线 - => ERROR [5/5] RUN npm install or yarn in Dockerfile yarn start-https 失败,出现错误命令失败,退出代码为 1 - yarn start-https failed with error Command failed with exit code 1 错误:在安装 CRA 应用程序的纱线时写入 EIO 错误 - Error: write EIO error while yarn install of CRA application 使用 Yarn 安装 reactstrap 但出现“无法解析 'reactstrap'”错误 - Used Yarn to install reactstrap but getting “Can't resolve 'reactstrap' ”error 使用yarn在带有Docker的Reactjs中“安装\\ r”错误是什么意思? - What does "install\r" error mean in Reactjs with Docker using yarn? 纱线安装错误:NX 无法读取未定义的属性(读取“endsWith”) - Yarn install error: NX Cannot read properties of undefined (reading 'endsWith') 纱线安装与纱线升级(安装不起作用) - yarn install vs yarn upgrade (install not working)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM