Node.js: node-postgres native raise error SCRAM authentication requires libpq version 10 or above

50 views Asked by At

I'm on Window 11 with Node.JS 20 and PostgreSQL 15.1:

import { native } from 'pg'; // npm install pg pg-native
const pool = new native.Pool({ .. });
pool.connect();

pool.query raise error

SCRAM authentication requires libpq version 10 or above

How fix it?

library version

{
  "pg": "^8.11.3",
  "pg-native": "^3.0.1"
}
0

There are 0 answers