bun icon indicating copy to clipboard operation
bun copied to clipboard

Bun doesn't install packages with unspecified version

Open davidsondefaria opened this issue 3 years ago • 1 comments

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)

davidsondefaria avatar Jul 07 '22 21:07 davidsondefaria

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.

janat08 avatar Aug 03 '22 08:08 janat08

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.

Electroid avatar Nov 01 '22 23:11 Electroid

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 avatar Jan 06 '23 15:01 ivoberger

@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?

Jarred-Sumner avatar Jan 06 '23 15:01 Jarred-Sumner

@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

ivoberger avatar Jan 06 '23 15:01 ivoberger