You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@mongodb-js/zstd fails to install on 22.14 with "N-API version undefined" #57118
Ok, seems like this happens only for some repositories and lacking a clean and minimal repro I'll close it and comeback if I can find a pattern to the madness.
------ EDIT ----
And for anyone finding this issue later.
I don't know why but it seems like the culprit here is prebuild-install if you end up with 7.1.2 you'll get the undefined issue on 22.14 but not 22.13.
Ensuring you have 7.1.3 will lead to great success.
Essentially what you probably want to to is to either forcefully regenerate any frozen lockfiles you got or do a install of prebuild-install with a version of 7.1.3 or above and ensure it's replacing whatever you got.
Activity
drunkcod commentedon Feb 20, 2025
Ok, seems like this happens only for some repositories and lacking a clean and minimal repro I'll close it and comeback if I can find a pattern to the madness.
------ EDIT ----
And for anyone finding this issue later.
I don't know why but it seems like the culprit here is
prebuild-installif you end up with 7.1.2 you'll get the undefined issue on 22.14 but not 22.13.Ensuring you have 7.1.3 will lead to great success.
Wodann commentedon Feb 27, 2025
Not a minimal repro but we're experiencing the same issue in CI here.
paescuj commentedon Feb 28, 2025
This seemed to be a result of the increased API version (#55676) which caused inspiredware/napi-build-utils#6.
This has been fixed in the meantime (inspiredware/napi-build-utils#7) and incorporated in
prebuild-install(prebuild/prebuild-install#204), so when the latest version is used, it should work correctly again.drunkcod commentedon Feb 28, 2025
I found this solution:
#57118 (comment)
Essentially what you probably want to to is to either forcefully regenerate any frozen lockfiles you got or do a install of
prebuild-installwith a version of7.1.3or above and ensure it's replacing whatever you got.Work around recent breakage of @mongodb-js/zstd install
Work around recent breakage of @mongodb-js/zstd install
cottageDevteam commentedon Dec 11, 2025
We are facing this issue with
node:24-slimandnode:24-trixie-slimalso recently. So, this issue might not only be related toNode 22.