DenoDDeno
Powered by
catwithakeyboardC
Denoβ€’16mo agoβ€’
1 reply
catwithakeyboard

How do I run this npx command in Deno? (i tried)

Hi. I am making a SvelteKit website using Deno 2.0.

I want to run the following:
npx sv create my-app
cd my-app
npm install
npm run dev
npx sv create my-app
cd my-app
npm install
npm run dev

I tried to run this code, and it worked (somewhat) by doing the following:
deno run -A npm:create-svelte@latest
(setting up svelte happens here)
deno install --allow-scripts
deno run -A npm:create-svelte@latest
(setting up svelte happens here)
deno install --allow-scripts

and then I am met with this prompt that never finishes (pic related)

I did put
{
    "nodeModulesDir": "auto"
}
{
    "nodeModulesDir": "auto"
}

into deno.json, as well. Any ideas why it hangs like this?
image.png
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Run `nvm` using Deno.Command
bombillazoBbombillazo / help
3y ago
Migrating from Deno.run to Deno.command, how to readLines?
Ed, Edd n EddyEEd, Edd n Eddy / help
2y ago