Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialization failed #23

Closed
jerriclynsjohn opened this issue Nov 2, 2022 · 1 comment
Closed

Initialization failed #23

jerriclynsjohn opened this issue Nov 2, 2022 · 1 comment

Comments

@jerriclynsjohn
Copy link

Right after selecting all the options, the project fails to initialize with the following error

Copy project files
    → npm ERR!     /home/jerric/.npm/_logs/2022-11-02T07_09_10_963Z-debug-0.log
    Initialize git
    Install dependencies
    Initialize DB
node:child_process:399
      ex = new Error('Command failed: ' + cmd + '\n' + stderr);
           ^

Error: Command failed: npm install --save --package-lock-only --no-package-lock @trpc/client @trpc/server trpc-sveltekit trpc-transformer zod && npm install --save -D --package-lock-only --no-package-lock @prisma/client prisma
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: t3svelte-app@0.0.1
npm ERR! Found: @trpc/server@10.0.0-rc.3
npm ERR! node_modules/@trpc/server
npm ERR!   @trpc/server@"*" from the root project
npm ERR!   peer @trpc/server@"10.0.0-rc.3" from @trpc/client@10.0.0-rc.3
npm ERR!   node_modules/@trpc/client
npm ERR!     @trpc/client@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! trpc-sveltekit@"*" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @trpc/server@9.27.4
npm ERR! node_modules/@trpc/server
npm ERR!   peer @trpc/server@"^9.27.4" from trpc-sveltekit@2.3.7
npm ERR!   node_modules/trpc-sveltekit
npm ERR!     trpc-sveltekit@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/jerric/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jerric/.npm/_logs/2022-11-02T07_09_10_963Z-debug-0.log

    at ChildProcess.exithandler (node:child_process:399:12)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1090:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'npm install --save --package-lock-only --no-package-lock @trpc/client @trpc/server trpc-sveltekit trpc-transformer zod && npm install --save -D --package-lock-only --no-package-lock @prisma/client prisma',
  context: [Object: null prototype] {}
}

Node.js v17.5.0
@zach-hopkins
Copy link
Owner

Resolved with fix #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants