DenoDDeno
Powered by
Sean KnowlesS
Deno•2y ago•
25 replies
Sean Knowles

Deno install npm: specificers not working at the moment.

I have tried Deno Install and have added the packages to my deno.json using deno add with the npm: prefix.

{
  "name": "@scope/opsap-data",
  "exports": "./mod.ts",
  "version": "0.0.1",
  "imports": {
    "@momiji/cors": "jsr:@momiji/cors@^1.0.1",
    "@oak/oak": "jsr:@oak/oak@^16.1.0",
    "rxdb": "npm:rxdb@^15.32.0",
    "rxjs": "npm:rxjs@^7.8.1"
  }
}
{
  "name": "@scope/opsap-data",
  "exports": "./mod.ts",
  "version": "0.0.1",
  "imports": {
    "@momiji/cors": "jsr:@momiji/cors@^1.0.1",
    "@oak/oak": "jsr:@oak/oak@^16.1.0",
    "rxdb": "npm:rxdb@^15.32.0",
    "rxjs": "npm:rxjs@^7.8.1"
  }
}


However no matter what I try, I can't run any projects that were previously working and can't seem to get the imports working for rxdb npm packages. Stuck again, any help would be greatly appreciated.

If I try to run a previous backend service that was working I get this now.

seanknowles@ip-10-23-44-20 ‹ main ↑●● › : ~/Projects/Zemili/moonrepoV3/apps/zemili/backend
[0] % deno task dev
Task dev deno run -A --watch main.ts
Watcher Process started.
error: Could not find a matching package for 'npm:path-to-regexp@6.2.1' in a package.json file. You must specify this as a package.json dependency when the node_modules folder is not managed by Deno.
    at https://jsr.io/@oak/oak/16.1.0/deps.ts:87:8
Watcher Process failed. Restarting on file change...
seanknowles@ip-10-23-44-20 ‹ main ↑●● › : ~/Projects/Zemili/moonrepoV3/apps/zemili/backend
[0] % deno task dev
Task dev deno run -A --watch main.ts
Watcher Process started.
error: Could not find a matching package for 'npm:path-to-regexp@6.2.1' in a package.json file. You must specify this as a package.json dependency when the node_modules folder is not managed by Deno.
    at https://jsr.io/@oak/oak/16.1.0/deps.ts:87:8
Watcher Process failed. Restarting on file change...
Screenshot_2024-09-02_at_09.21.17.png
Screenshot_2024-09-02_at_09.22.26.png
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

deno compile -A npm:cowsay not working
dsm23Ddsm23 / help
3y ago
deno install not working on latest canary
huseyincansoyluHhuseyincansoylu / help
2y ago
Deno not compiling npm packages
πΠπ / help
2y ago
canary `deno install` - can't find npm modules
Birk SkyumBBirk Skyum / help
2y ago