Open jjwallace opened 8 months ago
When you try to run unzip in your terminal, does it work?
tbh why does bun upgrade depend on unzip
. we should move away from this in the future, as we already statically link libarchive?
There's a solution for this problem? I'm facing this issue as well.
same issue on version 1.0.20 ubuntu :hand:
I just installed Bun five days ago and wanted to upgrade it to 1.0.21 (bc It doesn't work at all, cannot use bun run dev) Even though it used unzip to install itself a couple of days ago, it no longer can use unzip to upgrade itself.
same issue on version 1.0.20 ubuntu ✋
i also have this issue
Did anyone got the solution for this?
Did anyone got the solution for this?
Maybe u should try
sudo apt update
sudo apt-get install unzip
But...
So, I had the same issue but I managed to solve it.
For me it was a permission issue, I just changed to root and it worked then. My guess is that unzip is in the ROOT path, and not in your normal user path, so bun can't access it and doesnt see it there.
So try to upgrade via root, it worked for me :)
I encountered the same problem as well. After seeing the comment above mentioning that root privileges are required, I recalled that I installed bun-js using Snapcraft. I assume I would have faced a similar issue if I had installed it using apt.
Try upgrading using the package manager you used, instead of bun upgrade
.
Why does the release process depend on .zip? Using .tar.gz would result in a more painless procedure.
This issue is stale and may be closed due to inactivity. If you're still running into this, please leave a comment.
This shouldn't have been tagged with "needs repro", the reproduction is run bun upgrade
on a machine that doesn't have unzip
in path
What version of Bun is running?
1.0.15
What platform is your computer?
Linux 6.2.0-39-generic x86_64 x86_64
What steps can reproduce the bug?
Run Command
bun upgrade
What is the expected behavior?
upgrade bun to v1.0.18
What do you see instead?
error: Failed to locate "unzip" in PATH. bun upgrade needs "unzip" to work.
Additional information
Everything is up to date and also unzip is instlaled.