DenoDDeno
Powered by
berziB
Denoβ€’6mo agoβ€’
3 replies
berzi

`deno run` looks for dependency in the wrong place

$ deno run npm:svelte-check
error: Module not found "file:///home/berzi/projects/myproj/home/berzi/.cache/deno/npm/registry.npmjs.org/svelte-check/4.3.1/bin/svelte-check".
$ deno run npm:svelte-check
error: Module not found "file:///home/berzi/projects/myproj/home/berzi/.cache/deno/npm/registry.npmjs.org/svelte-check/4.3.1/bin/svelte-check".


- Any other
deno run
deno run
command with a dependency fails similarly.
-
deno run
deno run
with a HTTP URL like
deno run https://docs.deno.com/examples/scripts/hello_world.ts
deno run https://docs.deno.com/examples/scripts/hello_world.ts
works fine.
- I have no explicitly set
DENO_DIR
DENO_DIR
or
DENO_INSTALL_DIR
DENO_INSTALL_DIR
.
- I already tried
deno clean
deno clean
.
- In the path in the error, what strikes me as sus is that
/home/berzi
/home/berzi
appears twice, once at the start (seems correct), and once after the
myproj
myproj
directory (seems weird: I obviously don't have my home dir there). Since I don't set any cache dir or anything, I don't know why Deno would look in that weird path.

For clarity, my
$HOME
$HOME
also isn't set to anything weird that could make the path be interpreted as relative:
$ echo $HOME
/home/berzi
$ echo $HOME
/home/berzi


Any ideas?
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

Dependency injection deno deploy
fro.profesionalFfro.profesional / help
3y ago
RUN deno task in Dockerfile
vanpetVvanpet / help
3y ago