Unable to run reactjs.org project
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 11.8k
- Fork
- 7.9k
- Merge medio
- 1g 11h
- PR unite (30g)
- 11
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo l’errore di yarn segnalato su Windows 11, concentrandoti su node_modules/pngquant-bin/lib/install.js e sul plugin gatsby-source-react-error-codes menzionato nei log. Verifica se ECONNRESET si verifica durante l’installazione delle dipendenze, nel passaggio relativo alla sorgente Gatsby o in entrambi; il lavoro è completato quando yarn termina correttamente e yarn dev viene eseguito con successo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- build-system, documentation
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100