首页 > 解决方案 > Getting Error: Unknown authenticationOk message typeMessage { name: 'authenticationOk', length: 23 }

问题描述

I have installed Postgres 13 in windows 10. Configured all the right credentials in the environment file of the project. The project uses the below dependencies and it was created in ubuntu.

"pg": "^7.4.3",
"pg-hstore": "^2.3.2",
"sequelize": "4.38.0",
"sequelize-cli": "^6.2.0"

I'm trying to set it up in windows. And getting the below error in windows 10.

Error: Unknown authenticationOk message typeMessage { name: 'authenticationOk', length: 23 }

When I hit npx sequelize db:migrate in the terminal for migrating the tables in the database.

标签: node.jspostgresqlsequelize.jssequelize-clipostgresql-13

解决方案


I was able to fix this by upgrading pg from "^7.4.3" to "^8.7.1".


推荐阅读