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

[BUG] Can't upgrade bun on windows if its install directory is symlinked to another drive #15279

Open
EDM115 opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@EDM115
Copy link

EDM115 commented Nov 20, 2024

What version of Bun is running?

1.1.34-canary.51+5e5e7c60f

What platform is your computer?

Microsoft Windows NT 10.0.22635.0 x64

What steps can reproduce the bug?

  1. Install bun (using powershell -c 'irm bun.sh/install.ps1 | iex')
  2. Move the bun install directory to another drive (on a cmd, I did cd %USERPROFILE% && mklink /D ".bun" "D:\EDM115\UserFiles\.bun")
  3. Wait for an update to come
  4. Try to update : bun upgrade

What is the expected behavior?

Bun should be able to update itself regardless of the drive it's present on

What do you see instead?

bun upgrade
error: Failed to move new version of Bun to D:\EDM115\UserFiles\.bun\bin\bun.exe to EPERM

Please reinstall Bun manually with the following command:
   powershell -c 'irm bun.sh/install.ps1|iex'

Additional information

No response

@EDM115 EDM115 added bug Something isn't working needs triage labels Nov 20, 2024
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