Closed Jack-Barry closed 3 years ago
@Zxilly
Thanks!
@Jack-Barry @Zxilly can we just update the @prisma/cli pkg to latest version to fix this issue?
@hsluoyz It looks like the latest version of the @prisma/cli
package includes the preinstall
script that prevents it from being installed, to guide users to installing the prisma
package instead. So if anything the version of @prisma/cli
would probably have to be locked at an older version to continue using/installing it.
It looks like the fix proposed in #23 does what's needed (switches the dependency
/peerDependency
to prisma
)
@Jack-Barry released: https://www.npmjs.com/package/casbin-prisma-adapter/v/1.0.2
@hsluoyz That worked a treat, thanks for the quick update and release
When trying to install
casbin-prisma-adapter
on a fresh project, I'm hit with the following error output from Prisma:I think that the
dependency
of@prisma/cli
is causing this.If I try to install
@prisma/cli
directly it gives similar errors. This happens because of thepreinstall.js
script that gets run as part of thepreinstall
script from thepackage.json
of@prisma/cli
Have confirmed that if I build and pack
casbin-prisma-adapter
locally after removing thepeerDependency
of@prisma/cli
, the issue is no longer present on install. Would removing that as apeerDependency
be particularly harmful?