Skip to content

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

Open

Description

@channel101

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

Activity

  1. added
    bug
    documentation
    on Sep 30, 2026
  2. changed the title [-]Unable to find `pwsh.exe` error when using `npm` instead of `yarn` [0.84 Docs][/-] [+]Unable to find `pwsh.exe` error when using `npm` instead of `yarn` [0.84][/+] on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍bugdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions