smbkrS
Denoβ€’3y agoβ€’
2 replies
smbkr

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",
  }
}


but it doesn't work:

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.
Was this page helpful?