Skip to content
Discussion options

You must be logged in to vote

The x subcommand (bunx) internally tries to locate and spawn bun by name. When you rename the binary to bun-v1.3.14.exe, it can't find bun in PATH anymore and throws that error.

Bun doesn't inspect its own executable path for this — it just looks for bun in your system PATH. So renaming breaks bunx, bun install, and anything else that needs to spawn a child bun process.

If you want to keep versioned copies, you could keep the original name and use a wrapper or symlink:

# symlink approach
New-Item -ItemType SymbolicLink -Path "bun.exe" -Target "bun-v1.3.14.exe"

Or just keep it as bun.exe in a versioned folder like bun-1.3.14/bun.exe.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by stdedos
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants