smbkr
smbkr
DDeno
Created by smbkr on 9/5/2023 in #help
Importing NPM packages with `npm:` where package has `@` in the name
I want to import the package @hono/zod-openapi, version 0.30 I tried to add to my deno.json like so:
{
"imports": {
"@hono/zod-openapi": "npm:@hono/zod-openapi@0.3.0",
}
}
{
"imports": {
"@hono/zod-openapi": "npm:@hono/zod-openapi@0.3.0",
}
}
but it doesn't work:
error: Could not resolve 'npm:@hono/zod-openapi@0.3.0'.

Caused by:
not found
error: Could not resolve 'npm:@hono/zod-openapi@0.3.0'.

Caused by:
not found
I also tried: removing the leading @ and tried @hono@0.3.0/zod-openapi but those don't work either.
3 replies