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

Issue running create #1

Open
mattrochon opened this issue Dec 3, 2023 · 10 comments
Open

Issue running create #1

mattrochon opened this issue Dec 3, 2023 · 10 comments

Comments

@mattrochon
Copy link

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.

@dziraf
Copy link
Contributor

dziraf commented Dec 3, 2023

@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.

@mattrochon
Copy link
Author

image

Windows 10 using git bash terminal

@dziraf
Copy link
Contributor

dziraf commented Dec 4, 2023

Could you try the latest version (1.0.3)?

@mattrochon
Copy link
Author

image

Is my system just messed up?

@dziraf
Copy link
Contributor

dziraf commented Dec 4, 2023

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

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

@mattrochon
Copy link
Author

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

@dziraf
Copy link
Contributor

dziraf commented Dec 4, 2023

@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
Copy link

屏幕截图 2023-12-06 001040

@dziraf
Copy link
Contributor

dziraf commented Dec 5, 2023

@blacksheepstudio environment variables have to go before the command:

$ DEBUG=true adminjs create

@dziraf
Copy link
Contributor

dziraf commented Dec 6, 2023

@mattrochon That warning should be gone @ version 1.0.4

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

3 participants