Open karlhorky opened 3 months ago
node : v20.10.0 npm: 10.2.3
for this version we are able to install both dependency in windows without getting any failure.
My original reproduction was with pnpm latest (also tried the v9 beta), I've added this detail and the version number above.
What went wrong?
Installing
sharp@0.33.2
andbcrypt@5.1.1
together causesno member named
errors:Error logs:
Upon further investigation, there is an older version of
node-addon-api
(version5.1.0
) in the pnpm lockfile, which appears to be causing the issue (sharp
requiresnode-addon-api@>=7.0.0
):Also visible in the
bcrypt
package.json
:https://github.com/kelektiv/node.bcrypt.js/blob/d8195c6c4bb170b3b2ee2d04047a60fda80aa091/package.json#L33
Removing the
bcrypt
from thepackage.json
appears to make the error go away again.What did you expect to happen?
bcrypt@5.1.1
should be able to coexist withsharp@0.33.2
without causingsharp
build failuresWhich version of nodejs and OS?
Node.js: v20.12.1 Package manager: pnpm (latest and v9 beta) macOS: Sonoma 14.4.1 (23E224)