reactjs / reactjs/react.dev

Unable to run reactjs.org project

Đang mở
#5,647 7 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
JavaScript
Star
11.8k
Fork
7.9k
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
11

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi yarn được báo cáo trên Windows 11, tập trung vào node_modules/pngquant-bin/lib/install.js và plugin gatsby-source-react-error-codes được đề cập trong log. Kiểm tra xem ECONNRESET xảy ra trong quá trình cài đặt dependency, ở bước source của Gatsby hay cả hai; được xem là hoàn tất khi yarn chạy xong và yarn dev chạy thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, react
Lĩnh vực
build-system, documentation
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.