reactjs / reactjs/react.dev

Unable to run reactjs.org project

Open
#5,647 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported yarn failure on Windows 11, focusing on node_modules/pngquant-bin/lib/install.js and the gatsby-source-react-error-codes plugin mentioned in the logs. Check whether the ECONNRESET occurs during dependency installation, the Gatsby source step, or both; done means yarn completes and yarn dev runs successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
build-system, documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.