Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bun npm package doesn't work on Windows ("This app can't run on your PC"), but "@oven/bun-windows-x64" works fine #18041

Open
theinfinit opened this issue Mar 10, 2025 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@theinfinit
Copy link

theinfinit commented Mar 10, 2025

What version of Bun is running?

Installed via PNPM: "bun": "1.2.4",

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

First, why I want to install bun as a dependency? To run bun test from package.json scripts even if I'm not using bun as a package manager (at least for now :)).

Run on Windows machine:

  1. pnpm add -D bun
  2. pnpm bun, then I get the error:
    This app can't run on your PC
  3. After closing the dialog, there is Access is denied. in the console output.

To get it woking, I had to install @oven/bun-windows-x64

  1. pnpm rm -D bun
  2. pnpm add -D @oven/bun-windows-x64
  3. pnpm bun will work now.

It didn't worked when I had both bun and @oven/bun-windows-x64 installed as dependencies.

Context

Aside from that,

  • I have bun installed globally on my machine via winget install --id Oven-sh.Bun

  • Tested inside pnpm workspace

  • During installation of bun, these binaries were downloaded:

    devDependencies:
    + bun 1.2.4
    
    ../../..                                 |   +3 +
    Downloading @oven/[email protected]: 40,09 MB/40,09 MB, done
    Downloading @oven/[email protected]: 40,22 MB/40,22 MB, done

    Then, when I replaced it with @oven/bun-windows-x64, pnpm haven't downloaded any new binaries.

@theinfinit theinfinit added bug Something isn't working needs triage labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant