ntgussoni / blitz-guard

Blitz Guard - The centralized permission based authorization for Blitz.js
https://ntgussoni.github.io/blitz-guard
MIT License
134 stars 11 forks source link

Can't install the plugin #205

Open williamtran29 opened 2 years ago

williamtran29 commented 2 years ago

Try to install with

blitz install ntgussoni/blitz-guard-recipe

Got error

Screen Shot 2022-02-14 at 16 29 42
ntgussoni commented 2 years ago

Hello, I'll check what's going on.

if this only happens when you say yes to install the middleware skip that part and you can just add it manually following this: https://ntgussoni.github.io/blitz-guard/docs/middleware

webdeb commented 2 years ago

Got the same error, and there was no option to say "yes"

kenneho commented 2 years ago

Got the same error, and there was no option to say "yes"

Same issue here.

webdeb commented 2 years ago

@kenneho seems like a bug in codegen, but its minimal, you can just npm install it and add the middleware manually. https://ntgussoni.github.io/blitz-guard/docs/middleware/

kenneho commented 2 years ago

@kenneho seems like a bug in codegen, but its minimal, you can just npm install it and add the middleware manually. https://ntgussoni.github.io/blitz-guard/docs/middleware/

Thanks for the suggestion! First, running npm install ntgussoni/blitz-guard-recipe failed with the same error message, but I figured I should try npm install ntgussoni/blitz-guard, which fails with npm ERR! npm ERR! Error: Unknown binaryTarget debian-openssl-3.0.x and no custom binaries were provided. May it be that blitz-guard is written to work with the upcoming Blitz version, and not the current Blitz version 0.45.4? Any suggestions as to how to work around this issue?

webdeb commented 2 years ago

try npm i @blitz-guard/core

kenneho commented 2 years ago

try npm i @blitz-guard/core

Thanks, that worked like a charm, and I've now got Blitz guard up and running.