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

[BUG] AggregateError [ECONNREFUSED]: #582

Open
slim-python opened this issue Jul 15, 2024 · 3 comments
Open

[BUG] AggregateError [ECONNREFUSED]: #582

slim-python opened this issue Jul 15, 2024 · 3 comments
Assignees

Comments

@slim-python
Copy link

Describe the bug
when i tried to run it locally in windows 11, i got the following error after npm run setup

D:\kode\OSS\evershop>npm run setup

evershop@1.0.0-beta setup
evershop install

WARNING: No configurations found in configuration directory:D:\kode\OSS\evershop\config
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.
√ Postgres Database Host (localhost) · localhost

√ Postgres Database Port (5432) · 5432
√ Postgres Database Name (evershop) · evershop
√ Postgres Database User (postgres) · postgres
√ PostgreSQL Database Password () ·
❌ error:

AggregateError [ECONNREFUSED]:
at D:\kode\OSS\evershop\node_modules\pg-pool\index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async install (D:\kode\OSS\evershop\packages\evershop\bin\install\index.js:108:5)
at async D:\kode\OSS\evershop\packages\evershop\bin\install\index.js:287:5

To Reproduce
Steps to reproduce the behavior:
clone repo and do npm install and then do npm run setup

Expected behavior
A clear and concise description of what you expected to happen.
should have worked but did'nt

Screenshots
If applicable, add screenshots to help explain your problem.

Background (please complete the following information):

  • NodeJS Version
  • Postgres Version
  • EverShop Version
  • OS: [e.g. Window, Ubuntu, Mac-OS]
  • Browser [e.g. Chrome, Safari]

Additional context
Add any other context about the problem here.

@treoden
Copy link
Collaborator

treoden commented Jul 16, 2024

Hi @slim-python

Please tell us about your env, node version, postgres version ...etc

@treoden treoden assigned slim-python and unassigned treoden Jul 16, 2024
@chinhquoc01
Copy link

Same error here. Happend on npm version 10.2.3, node 20.10.0, postgres 16.4

@chinhquoc01
Copy link

Same error here. Happend on npm version 10.2.3, node 20.10.0, postgres 16.4

Turned out that my postgresql run on port 5433, but evershop setup postgresql run default on port 5432. Just change the port config and everything is okay.

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