sqlite-vec icon indicating copy to clipboard operation
sqlite-vec copied to clipboard

Unable to install in Deno 2.4.3 on MacOS Tahoe

Open LorenzoCorbella74 opened this issue 5 months ago • 2 comments

In Deno 2.4.3 on MacOS Tahoe when installing with deno add npm:sqlite-vec we obtain:

Add npm:[email protected] error: Failed loading https://registry.npmjs.org/sqlite-vec-darwin-arm64 for package "sqlite-vec-darwin-arm64"

Caused by: invalid type: null, expected a map at line 1 column 103101

Same story with npm:[email protected]. It'seems a problem of Deno?

LorenzoCorbella74 avatar Aug 10 '25 09:08 LorenzoCorbella74

It seems like a problem with Deno, I tried 2.5.1. npm and bun work.

Could you open an issue there?

reneleonhardt avatar Sep 19 '25 11:09 reneleonhardt

It seems to happen inside NpmResolutionSnapshot::add_pkg_reqs(), I guess not all expected errors (like an empty map or a map which is null) from the registry result are being handled.

https://github.com/denoland/deno_npm/blob/main/src/resolution/snapshot.rs#L300

reneleonhardt avatar Sep 19 '25 13:09 reneleonhardt