DenoDDeno
Powered by
florentF
Denoβ€’16mo agoβ€’
2 replies
florent

How to install npm dev dependencies?

I try to install
keysely-codegen
keysely-codegen
using
deno add -D npm:kysely-codegen
deno add -D npm:kysely-codegen
but everytime it adds the dependency to my regular imports in the
deno.json
deno.json
, which looks like this:

{
  "nodeModulesDir": "auto",
  "tasks": {
    "dev": "deno run --watch main.ts"
  },
  "imports": {
    "hono": "npm:hono@^4.6.11",
    "kysely": "npm:kysely@^0.27.4",
    "kysely-codegen": "npm:kysely-codegen@^0.17.0",
    "pg": "npm:pg@^8.13.1",
    "@types/pg": "npm:@types/pg@^8.11.10",
    "pg-pool": "npm:pg-pool@^3.7.0"
  }
}
{
  "nodeModulesDir": "auto",
  "tasks": {
    "dev": "deno run --watch main.ts"
  },
  "imports": {
    "hono": "npm:hono@^4.6.11",
    "kysely": "npm:kysely@^0.27.4",
    "kysely-codegen": "npm:kysely-codegen@^0.17.0",
    "pg": "npm:pg@^8.13.1",
    "@types/pg": "npm:@types/pg@^8.11.10",
    "pg-pool": "npm:pg-pool@^3.7.0"
  }
}


what am I doing wrong here? I still have a hard time how the npm stuff works with deno
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

`deno install` installs workspace members' npm dependencies, but not jsr dependencies?
hosiHhosi / help
17mo ago
Remap transient npm dependencies
Mark GMMark G / help
7mo ago
deno install Omit/exclude dev dependencies from package.json
AgowanAAgowan / help
14mo ago