-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pg-native don't works on Node 23 #3332
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
Given that |
cesco69
changed the title
install pg-native fails on Node 23
pg-native don't works on Node 23
Oct 31, 2024
@charmander @brianc any news? this issue has a fix brianc/node-libpq#103 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@brianc
Install
pg-native
fails on Node 23 becausepg-native
depends onnode-libpq
that depends onnan
2.19.0.nan
2.19.0 official support node at version 21 (see https://www.npmjs.com/package/nan/v/2.19.0 ) but also works on node 22, but doesn't works on node 23 due to this issue nodejs/nan#953 fixed on nan 2.22.0 (see https://www.npmjs.com/package/nan/v/2.22.0).How fix it
Fixing
pg-native
on node 23 require to updatenan
dependecies onnode-libpq
(see this PR brianc/node-libpq#103 ), releasing a new version and updatepg-native
dependecies ofnode-libpq
.Workaround
The workaround is override
nan
peer dependencies into package.json, eg (withpnpm
):Step to riproduce
Create a
Dockerfile
file with node 23run docker build
Output
show
I have also add node 23 into the matrix test #3337 that actually fails for this reason (see https://github.com/brianc/node-postgres/actions/runs/11608539697/job/32326937373?pr=3337 )
The text was updated successfully, but these errors were encountered: