SoftwareBrothers / adminjs-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue running create

mattrochon opened this issue · comments

image
image

No matter if i pick a different package manager or specify the env as part of the process, the result is the same. Not sure how to get the debug info to show when I run. Tried making env vars at the system level, tried putting them int he .env file, no effect.

@mattrochon I've just released a new version which should fix the issue with missing error logs with DEBUG=true. Could you try to reinstall @adminjs/cli and share the exact message? Sharing your OS will also be helpful.

image

Windows 10 using git bash terminal

Could you try the latest version (1.0.3)?

image

Is my system just messed up?

The package name is @adminjs/cli, not adminjs-cli.

Can you try to run npm uninstall -g @adminjs/cli then install again?

Oh, thats embarrassing :D

Ok using the correct package name seems to have worked, and the create method finished now.

I did get 2 of these warnings during the process but it passed:

image

@mattrochon It's possible that postSetup script failed. It does some extra work for you, i. e. it generates prisma/schema.prisma. I'll have a look at that warning tomorrow.

@blacksheepstudio environment variables have to go before the command:

$ DEBUG=true adminjs create

@mattrochon That warning should be gone @ version 1.0.4