Postgres server is not responding to a nodejs request

后端 未结 1 1940
面向向阳花
面向向阳花 2021-01-25 09:35

I have access to a remote postgres DB from pgAdmin4 and I also could access from nodejs using a Mac. Right now I\'m using the same code to access the DB in Windows. The code for

1条回答
  •  臣服心动
    2021-01-25 10:22

    I suspect that you have the same problem like in this other post. Since it is not a 100% duplicate I will post this again:

    There is a known issue in the pg module and NodeJS 14.

    The proposed solution is to make sure you have pg>=8.0.3 installed.

    This can be done by updating pg in the dependencies.

    Also make sure, that any other library depending on the pg module, is also up to date and has the latest pg version.

    If this is not possible for any reason - using Node 12 should also work.

    0 讨论(0)
提交回复
热议问题