bbqchickenrobot
bbqchickenrobot•8mo ago

Deno CLI Broken

Anytime I attempt to run the deno CLI the arrow keys get stuck and I cannot make a selection. I have tried this on two separate machines, so I know it's not an environment issue. Here is the command I'm running:
deno run --allow-read --allow-write --allow-env npm:create-vite-extra@latest
deno run --allow-read --allow-write --allow-env npm:create-vite-extra@latest
Not sure what I can do here - i've been messing with it for a day now to no avail. Any suggestions? Anyone else experiencing the issue?
9 Replies
Deno AI Helper
Deno AI Helper•8mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the command you've provided, I noticed that the syntax for using a third-party module from a URL or a package manager seems to be incorrect. In Deno, when you want to run a module directly from a URL, you typically specify the full URL to the script. The command you're using seems to be attempting to use npm package syntax (npm:<package>@<version>), which is not a standard Deno command or module specifier. Deno does not use npm packages directly; instead, it uses modules referenced by URLs. If you're trying to run a third-party module, you should ensure that you're using a URL that points directly to the module's entry file. For example:
deno run --allow-read --allow-write --allow-env https://example.com/mod.ts
deno run --allow-read --allow-write --allow-env https://example.com/mod.ts
Replace https://example.com/mod.ts with the actual URL of the module you're trying to run. Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of the advice given. If you continue to experience issues with the Deno CLI, you might want to reach out to the Deno community or check the GitHub issues for similar problems that other users might have reported.
bbqchickenrobot
bbqchickenrobotOP•8mo ago
Nobody else having the problem? aight, back to asp.net core 🙂 was excited to figure out how to get deno up and running
marvinh.
marvinh.•8mo ago
That sounds like a bug in Deno. Can you open an issue https://github.com/denoland/deno/issues/new/choose ?
bartlomieju
bartlomieju•8mo ago
@bbqchickenrobot which OS are you on? I think there's a problem on Windows that we are eyeballing to fix
bbqchickenrobot
bbqchickenrobotOP•8mo ago
yes, on windows - I can possibly try wsl ?
bartlomieju
bartlomieju•8mo ago
That should work, @divy was looking into that Windows big, it's really tricky to fix
bbqchickenrobot
bbqchickenrobotOP•8mo ago
Got it - ok cool thanks - i'll do that iv not, i'll spin up a linux vm and create it there and copy it back.
Warlockk
Warlockk•8mo ago
I did try it and it works fine with WSL, but not on Windows. Tried on git bash console and normal terminal
bbqchickenrobot
bbqchickenrobotOP•7mo ago
ya, same , got it up and running via WSL as well