wahyubucil / adonis-prisma

Prisma Provider for AdonisJS
MIT License
79 stars 9 forks source link

Error while installing the package #5

Closed WailRoth closed 11 months ago

WailRoth commented 11 months ago
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @wahyubucil/adonis-prisma@1.0.0
npm ERR! Found: @adonisjs/auth@3.2.0
npm ERR! node_modules/@adonisjs/auth
npm ERR!   @adonisjs/auth@"^3.0.7" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @adonisjs/auth@"^8.2.3" from @wahyubucil/adonis-prisma@1.0.0
npm ERR! node_modules/@wahyubucil/adonis-prisma
npm ERR!   @wahyubucil/adonis-prisma@"*" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @adonisjs/auth@8.2.3
npm ERR! node_modules/@adonisjs/auth
npm ERR!   peerOptional @adonisjs/auth@"^8.2.3" from @wahyubucil/adonis-prisma@1.0.0
npm ERR!   node_modules/@wahyubucil/adonis-prisma
npm ERR!     @wahyubucil/adonis-prisma@"*" 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!
npm ERR! For a full report see:
npm ERR! /Users/alexisdumain/.npm/_logs/2023-08-11T23_16_59_124Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/alexisdumain/.npm/_logs/2023-08-11T23_16_59_124Z-debug-0.log```

This is the error I have after 

adonis new pname npm i --save-dev prisma && npm i @prisma/client npm i @wahyubucil/adonis-prisma

Latest version of adonis

wahyubucil commented 11 months ago

@WailRoth Please explain how you solved it, so anyone with the same problem can learn from it. Thanks!

WailRoth commented 11 months ago

I can't now, i'll do it later.But, another question, when using the token api, what should put for the tokenProvider ? Le 12 août 2023 à 17:27, Wahyu Budi Saputra @.***> a écrit : @WailRoth Please explain how you solved it, so anyone with the same problem can learn from it. Thanks!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

WailRoth commented 11 months ago

Ok right, first I installed the adonis package but for JS instead of TS Next, my folder was protected with permission, I removed them with chmod (misconfiguration)

That's all.