reactjs / reactjs/react.dev

Unable to run reactjs.org project

未关闭
#5,647 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
11.8k
派生
7.9k
平均合并
1 天 11 小时
30 天内合并 PR
11

描述

Followed below steps to install node_modules.

fork reactjs.org
cloned the fork to local
cd reactjs.org
yarn

expected result: install node_modules successfully
actual result: getting following error.

Error occurring when ran command yarn

error c:\projects\open source\reactjs.org\node_modules\pngquant-bin: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: c:\projects\open source\reactjs.org\node_modules\pngquant-bin
Output:
‼ read ECONNRESET
  ‼ pngquant pre-build test failed
  i compiling from source
  × Error: pngquant failed to build, make sure that libpng-dev is installed
    at c:\projects\open source\reactjs.org\node_modules\bin-build\node_modules\execa\index.js:231:11

after this error I still went ahead and ran Yarn dev and see below error

 ERROR

The gatsby-source-react-error-codes plugin has failed:
Error: read ECONNRESET

not finished source and transform nodes - 0.390s
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Environment:
windows 11 using command prompt as well as powershell, both as admin

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先在 Windows 11 上重现报告的 yarn 失败,重点检查 node_modules/pngquant-bin/lib/install.js 和日志中提到的 gatsby-source-react-error-codes 插件。检查 ECONNRESET 是在依赖安装期间、Gatsby 源步骤中,还是两者都会发生;完成的标准是 yarn 成功完成并且 yarn dev 成功运行。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, react
领域
build-system, documentation
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。