bun
bun copied to clipboard
Bun doesn't install packages with unspecified version
I was testing bun with a project has only one dependency: graphql-yoga, but this requires packages that does not specify a version.
So bun is unable to install these packages.
package.json:
{
"name": "graphql-basics",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
},
"dependencies": {
"graphql-yoga": "1.14.10"
},
"devDependencies": {
}
}
Error:
bun install v0.1.1
error: No version matching "^0.0.x" found for specifier "graphql-extensions" (but package exists)
error: No version matching "^0.0.x" found for specifier "graphql-extensions" (but package exists)
error: No version matching "^*" found for specifier "aws-sdk" (but package exists)
error no version matching "^0.x" found for specifier "stylus" (but package exists). Im trying to install hono which is server side. It works if I specify a version package.json and run bun install, fails when I run bun add hono.
It looks like this issue has been resolved as of 0.2.2. Please feel free to comment if you can still reproduce the issue after running bun upgrade.
Maybe this should be a fresh issue but I'm getting the same error on bun 0.4.0
error: No version matching "^0.0.x" found for specifier "@stdlib/constants-float64-exponent-bias" (but package exists)error: No version matching "^0.0.x" found for specifier "@stdlib/math-base-assert-is-nan" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/constants-float64-max-base2-exponent" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/math-base-assert-is-infinite" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/number-float64-base-exponent" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/constants-float64-ninf" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/constants-float64-min-base2-exponent-subnormal" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/constants-float64-max-base2-exponent-subnormal" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/constants-float64-pinf" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/number-float64-base-normalize" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/math-base-special-copysign" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/number-float64-base-from-words" (but package exists)
error: No version matching "^0.0.x" found for specifier "@stdlib/number-float64-base-to-words" (but package exists)
They're dependencies of @stdlib/math-base-special-ldexp@^0.0.5 which itself is a dependency of @segment/[email protected] which is a dependency of @segment/[email protected].
@ivoberger that is a different bug, I suspect it's a parsing issue with semver but I'm not sure yet. Can you file a fresh issue for this?
@ivoberger that is a different bug, I suspect it's a parsing issue with semver but I'm not sure yet. Can you file a fresh issue for this?
sure, no problem.
Edit: here's the fresh issue: #1736