You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Deno 2.02 for installing NextJS but getting errors.
deno run -A npm:create-next-app@latest
✔ What is your project named? … next-app
✔ Would you like to use TypeScript? … No / Yes
✔ Would you like to use ESLint? … No / Yes
✔ Would you like to use Tailwind CSS? … No / Yes
✔ Would you like to use 'src/' directory? … No / Yes
✔ Would you like to use App Router? (recommended) … No / Yes
✔ Would you like to customize the default import alias (@/*)? … No / Yes
Creating a new Next.js app in /Users/xxxxxxxxxxx/next-app.
Using npm.
Initializing project with template: app-tw
Installing dependencies:
react
react-dom
next
Installing devDependencies:
typescript
@types/node
@types/react
@types/react-dom
postcss
tailwindcss
error: Uncaught Error: spawnSync npm ENOENT at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:93:9) at __node_internal_errnoException (ext:deno_node/internal/errors.ts:141:10) at _createSpawnSyncError (ext:deno_node/internal/child_process.ts:685:17) at new ChildProcess (ext:deno_node/internal/child_process.ts:287:13) at Object.spawn (node:child_process:120:10) at spawn (file:///Users/xxxxxxxxxxx/Library/Caches/deno/npm/registry.npmjs.org/create-next-app/14.2.15/dist/index.js:7:76725) at file:///Users/xxxxxxxxxxx/Library/Caches/deno/npm/registry.npmjs.org/create-next-app/14.2.15/dist/index.js:73:33444 at new Promise (<anonymous>) at install (file:///Users/xxxxxxxxxxx/Library/Caches/deno/npm/registry.npmjs.org/create-next-app/14.2.15/dist/index.js:73:33412) at installTemplate (file:///Users/xxxxxxxxxxx/Library/Caches/deno/npm/registry.npmjs.org/create-next-app/14.2.15/dist/index.js:73:40032)
The text was updated successfully, but these errors were encountered:
create-next-app is trying to spawn npm but it is not available in your PATH env. There is not much Deno can do here unless Next.js folks add --skip-install or --use-deno flag. In the meantime you need to install npm
The existing installation step doesn't work!! See https://questions.deno.com/m/1294573642491105343denoland/deno#26483
Some people may also want to migrate their existing Next13/14 apps to Deno2. This will help them clarify better instead of getting the latest Next setup with deno2.
I'm trying to use Deno 2.02 for installing NextJS but getting errors.
deno run -A npm:create-next-app@latest
✔ What is your project named? … next-app
✔ Would you like to use TypeScript? … No / Yes
✔ Would you like to use ESLint? … No / Yes
✔ Would you like to use Tailwind CSS? … No / Yes
✔ Would you like to use 'src/' directory? … No / Yes
✔ Would you like to use App Router? (recommended) … No / Yes
✔ Would you like to customize the default import alias (@/*)? … No / Yes
Creating a new Next.js app in /Users/xxxxxxxxxxx/next-app.
Using npm.
Initializing project with template: app-tw
Installing dependencies:
Installing devDependencies:
error: Uncaught Error: spawnSync npm ENOENT at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:93:9) at __node_internal_errnoException (ext:deno_node/internal/errors.ts:141:10) at _createSpawnSyncError (ext:deno_node/internal/child_process.ts:685:17) at new ChildProcess (ext:deno_node/internal/child_process.ts:287:13) at Object.spawn (node:child_process:120:10) at spawn (file:///Users/xxxxxxxxxxx/Library/Caches/deno/npm/registry.npmjs.org/create-next-app/14.2.15/dist/index.js:7:76725) at file:///Users/xxxxxxxxxxx/Library/Caches/deno/npm/registry.npmjs.org/create-next-app/14.2.15/dist/index.js:73:33444 at new Promise (<anonymous>) at install (file:///Users/xxxxxxxxxxx/Library/Caches/deno/npm/registry.npmjs.org/create-next-app/14.2.15/dist/index.js:73:33412) at installTemplate (file:///Users/xxxxxxxxxxx/Library/Caches/deno/npm/registry.npmjs.org/create-next-app/14.2.15/dist/index.js:73:40032)
The text was updated successfully, but these errors were encountered: