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

npm run user:create -- --email "your email" --password "your password" --name "your name" #369

Open
khanh-huynh-1986 opened this issue Oct 25, 2023 · 4 comments

Comments

@khanh-huynh-1986
Copy link

cannot be replaced and returns a value

evershop@1.0.0-beta user:create
evershop user:create --name name --email email --password password

Options:
--version Show version number [boolean]
-n, --name Admin user full name [string] [required]
-e, --email User email [string] [required]
-p, --password User password [string] [required]
--help Show help [boolean]

Invalid password

@treoden
Copy link
Collaborator

treoden commented Oct 25, 2023

Hi @khanh-huynh-1986 ,

Make sure you password is secure. It contains at least 1 uppercase, 1 lower case, 1 number and 1 special character

Thanks

@khanh-huynh-1986
Copy link
Author

After setting the password correctly, it says something like this:
❌ AggregateError
at C:\xampp\htdocs\my-app\node_modules\pg-pool\index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async InsertOnUpdateQuery.sql (C:\xampp\htdocs\my-app\packages\postgres-query-builder\index.js:911:20)
at async InsertOnUpdateQuery.execute (C:\xampp\htdocs\my-app\packages\postgres-query-builder\index.js:513:15)
at async InsertOnUpdateQuery.execute (C:\xampp\htdocs\my-app\packages\postgres-query-builder\index.js:967:18)
at async createAdminUser (C:\xampp\htdocs\my-app\packages\evershop\bin\user\create.js:61:5)

I am new, please help me how to solve the above problem. Thank you very much!

@treoden
Copy link
Collaborator

treoden commented Oct 26, 2023

Hi @khanh-huynh-1986 ,

Did you manage to install the app?
Can you provide the system information like Node version, Postgres version, npm version?

Thanks

@khanh-huynh-1986
Copy link
Author

khanh-huynh-1986 commented Oct 26, 2023

Hi @treoden

  • HP@Khanh-Huynh MINGW64 /c/xampp/htdocs/my-app
    $ node --version
    v21.0.0
  • Postgres:16.0
  • $ npm --version
    10.2.1
    THanks!

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

2 participants