bun icon indicating copy to clipboard operation
bun copied to clipboard

Support ```npm:``` dependencies

Open suienzan opened this issue 3 years ago • 3 comments

run bun add eslint-import-resolver-typescript get the following error

bun add v0.1.1


error: No version matching "npm:@unts/get-tsconfig@^4.1.1" found for specifier "get-tsconfig" (but package exists)

suienzan avatar Jul 06 '22 03:07 suienzan

Same issue using bun install

Momentum workaround:

add "eslint-import-resolver-typescript": "^2.7.1", in package.json (or lower) and using bun install

RodrigoRVSN avatar Jul 09 '22 02:07 RodrigoRVSN

eslint-import-resolver-typescript uses the npm syntax for specifying dependencies. I think bun checks get-tsconfig (latest version: 4.1.0), when it should check @unts/get-tsconfig (latest version: 4.1.1).

FinnRG avatar Jul 09 '22 08:07 FinnRG

Same issue with bun add plotly.js resulting in

error: No version matching "npm:@plotly/regl@^2.1.2" found for specifier "regl" (but package exists)

DreierF avatar Oct 21 '22 09:10 DreierF

Thanks for reporting. This is something we are definitely going to implement. (soon!)

Electroid avatar Nov 01 '22 21:11 Electroid

This was added in Bun v0.5.1

Jarred-Sumner avatar Jan 21 '23 12:01 Jarred-Sumner