Unable to find `pwsh.exe` error when using `npm` instead of `yarn` [0.84]
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ả
Page url
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:
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/react-native-windows-samples
-
bug documentation Needs: Triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Document node 18 dependeciesĐang mởdocumentation enhancement good first issue good first issue: easy
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
microsoft/react-native-windows-samples#861 · 2 bình luận ·
-
Update the sample projects to be compatible with react-native-windows 0.82.0-preview.8Có thể làm lại được @iamAbhi-916 đã nhận 241 ngày trước và không có pull request nào đang mở. Đang mởenhancement Workstream: Gallery and Samples
microsoft/react-native-windows-samples#1141 · 1 người được giao ·
-
Update CI pipeline to windows-latest when main has changes readyCó thể làm lại được @vineethkuttan đã nhận 328 ngày trước và không có pull request nào đang mở. Đang mởbug
microsoft/react-native-windows-samples#1099 · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/react-native-windows-samples#1090 · 1 bình luận ·
Tất cả issue của microsoft/react-native-windows-samples
Issue tương tự
-
bug P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
nightscout/nocturne#1908 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
WPF: each page's `Title` overwrites the window title, and returning to a page does not restore itĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows area/Docs partner/agentic-workflows
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jamesmontemagno/tiny-clips#378 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update bug report formĐang mởNew Feature
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
pyrevitlabs/pyRevit#3701 ·
Maintainer thường phản hồi trong vòng 1 ngày