Unable to install in Deno 2.4.3 on MacOS Tahoe
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?
It seems like a problem with Deno, I tried 2.5.1. npm and bun work.
Could you open an issue there?
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