denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
96.53k stars 5.33k forks source link

deno -A npm:create-next-app@latest requires NPM #26242

Closed ksed closed 6 days ago

ksed commented 6 days ago

Version: Deno 2.0

We supposedly have the ability to create Next.js app with Deno rather than Node.js. Yet, when I run deno -A npm:create-next-app@latest without Node/NPM installed Deno crashes during the setup complaining that it can't run NPM.

Thus, IFF Deno is supposed to be able to replace Nodejs outright, then it needs a way to generate such apps without Node.js installed. Just saying...

littledivy commented 6 days ago

Duplicate of https://github.com/denoland/deno/issues/26232

create-next-app spawns npm and there seems to be no way to skipping the install step. There is nothing Deno can do about this. I would suggest requesting a --use-deno or --skip-install flag from the Next.js folks.