bun
bun copied to clipboard
Unable to install version of a package that was released a few seconds ago
What version of Bun is running?
1.1.1
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
I stumbled upon this by pure coincidence and I don't think this is easily reproducible. I ran ncu --deep -i
, and updated all of my packages. Tried running bun install
and got the following output:
bun install v1.1.1 (ca1dbb4e)
error: No version matching "^2.3.33" found for specifier "@sanity/overlays" (but package exists)
error: No version matching "^1.9.9" found for specifier "@sanity/react-loader" (but package exists)
However, the package versions are both valid and can be found on the NPM website. Something I noticed though is that both of them were released just mere seconds ago.
I'm not 100% confident this is a bug in some sort of bun cache or whether this is related to some caching layer of NPM. Just wanted to submit the bug just in case.
What is the expected behavior?
Installing a package that is released should work even if it was just released a second ago.
What do you see instead?
An error mentioning that the versions of the packages were not existent.
Additional information
As expected after waiting a few minutes and re-running bun install
. It simply worked.
try bun install --force