Unable to run reactjs.org project
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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