Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Unable to find `pwsh.exe` error when using `npm` instead of `yarn` [0.84]

Đang mở Phù hợp với người mới
#1,343 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, node.js, powershell
Lĩnh vực
documentation, tooling

Hướng nghiên cứu

Bắt đầu với tài liệu bắt đầu sử dụng được liên kết trong issue và so sánh hướng dẫn thiết lập npm và yarn của tài liệu đó với packages/@react-native-windows/find-dotnet-tools/src/findDotnetTools.ts. Xác nhận cách người dùng npm gặp lỗi thiếu pwsh.exe, sau đó cập nhật tài liệu hoặc thông báo liên quan để giải thích yêu cầu về PowerShell 7. Xác minh rằng hướng dẫn và nội dung lỗi bao quát cả hai trình quản lý gói.

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

Mô tả

bug documentation Needs: Triage :mag:
Page url

https://microsoft.github.io/react-native-windows/docs/getting-started/#add-react-native-windows-to-your-projects-dependencies

Problem Description

When setting up the project using npm instead of yarn, the build fails because it cannot find pwsh.exe. The error message assumes the user is using yarn install.

Error Log:

Error: Unable to find pwsh.exe. It should have been made available by `yarn install`.
    at findPowerShell (...\node_modules\@react-native-windows\find-dotnet-tools\lib-commonjs\findDotnetTools.js:62:11)

(Environment: Node.js v26.7.0)

Cause & Workaround:
If developers choose to use npm, pwsh.exe is not automatically made available. To resolve this, npm users must manually install PowerShell 7.

It would be helpful to update the error message or the documentation to mention that PowerShell 7 must be installed manually when using npm.

References:

Image
Ngôn ngữ chính
C#
Star
544
Fork
218
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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.

Issue khác của microsoft/react-native-windows-samples

Tất cả issue của microsoft/react-native-windows-samples

Issue tương tự

Thêm issue về C#

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.