[object Object][
Denoβ€’16mo agoβ€’
15 replies
[object Object]

[ERR_MODULE_NOT_FOUND]

I get this error, and, surely, going into the aformentioned path to check, I don't seem to have the file it's looking for - even though the directory exists. (See the attached image)

PS C:\Users\Emil\Projects\emoji-game> deno run dev
Task dev deno run --allow-net --allow-read server.ts
error: Could not resolve 'npm:http@0.0.1-security'.

Caused by:
    [ERR_MODULE_NOT_FOUND] Cannot find module 'file:///C:/Users/Emil/AppData/Local/deno/npm/registry.npmjs.org/http/0.0.1-security/index.js' imported from 'file:///C:/Users/Emil/Projects/emoji-game/server.ts'


Does anyone know how to fix this dependency issue? Do I need to run some sort of update/install/sync command for my environment? I thought you could just reference npm modules by prefixing the import paths with npm:
image.png
Was this page helpful?