Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#1,343 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, node.js, powershell

調査の方向性

issue にリンクされている入門ドキュメントから始め、その npm および yarn のセットアップ手順を packages/@react-native-windows/find-dotnet-tools/src/findDotnetTools.ts と比較します。npm ユーザーが pwsh.exe が見つからないエラーにどのように遭遇するかを確認し、PowerShell 7 が必要であることを説明するよう、関連するドキュメントまたはメッセージを更新します。手順とエラー文言が両方のパッケージマネージャーをカバーしていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
C#
スター
544
フォーク
218
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/react-native-windows-samples のほかの issue

microsoft/react-native-windows-samples の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。