Bun Windows Upgrade Fails in PowerShell 7 Due to PSModulePath Conflict
Is it fixed? Not yet.
Ongoing since Nov 20, 05:35 UTC. First reported Nov 20, 05:35 UTC.
What happened
Running `bun upgrade` from PowerShell 7 on Windows fails because an inherited PSModulePath causes Windows PowerShell 5.1 to load PowerShell 7's Microsoft.PowerShell.Archive module. The upgrade process errors out, leaving the installed binary untouched.
What caused it?
Inherited PSModulePath causes Windows PowerShell 5.1 to load PowerShell 7's Microsoft.PowerShell.Archive module.
Source: github.com
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Official fixTimeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
Windows: `bun upgrade` fails when launched from PowerShell 7 (inherited PSModulePath makes 5.1 load PS7's Microsoft.PowerShell.Archive)
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportWindows: `bun upgrade` fails when launched from PowerShell 7 (inherited PSModulePath makes 5.1 load PS7's Microsoft.PowerShell.Archive)(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.6-canary.1+eaeb8564c (reproduced today, 2026-11-20; also reproduced on 1.4.4 before upgrading) What platform is your computer? Microsoft Windows NT 10.0.19045.0 x64 · PowerShell 7.6.10 · Windows PowerShell 5.1.19041.7844 What steps can reproduce the bug? Bun installed at the default %USERPROFILE%\.bun (canary channel). Open PowerShell 7 (7.6.10) and run: bun upgrade --canary Upgrade fails with the error below; the installed binary is left untouched. What bun…
by xinvxueyuan 0upvotes 0comments
FAQ
What happened in the Bun issue?
Running `bun upgrade` from PowerShell 7 on Windows fails because an inherited PSModulePath causes Windows PowerShell 5.1 to load PowerShell 7's Microsoft.PowerShell.Archive module. The upgrade process errors out, leaving the installed binary untouched.
What is affected by the Bun issue?
Bun (versions: 1.4.6-canary.1+eaeb8564c, 1.4.4).
When did the Bun issue start and end?
It started Nov 20, 05:35 UTC and is still ongoing (31 min so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.