`deno run` looks for dependency in the wrong place
- Any other
deno run command with a dependency fails similarly.
- deno run with a HTTP URL like deno run https://docs.deno.com/examples/scripts/hello_world.ts works fine.
- I have no explicitly set DENO_DIR or DENO_INSTALL_DIR.
- I already tried deno clean.
- In the path in the error, what strikes me as sus is that /home/berzi appears twice, once at the start (seems correct), and once after the 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 also isn't set to anything weird that could make the path be interpreted as relative:
Any ideas?3 Replies
GitHub
denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
sure
GitHub
deno run prepends current project directory to cache directory (a...Version: Deno 2.5.1 OS: Ubuntu Linux 20.04.6 LTS on Windows WSL2 This is a fresh installation of Deno, this command hasn't worked for me before. $ deno run npm:svelte-check error: Module not fo...