Open RinkalBhojani opened 1 month ago
Maybe this is related to the comment from @btsimonh in https://github.com/nodejs/node/issues/52240#issuecomment-2432473563. I'll check as soon as I can get a Windows machine, but in the meantime probably it may work for you if you force node-gyp-build
to version 4.8.2, i.e. add it to package.json's resolutions
field:
resolutions: {
...
"node-gyp-build": "4.8.2",
...
}
resolutions: { "node-gyp-build": "4.8.2" }
@genaris - I tried this but got the same error.
'"call"' is not recognized as an internal or external command,
see the mods I mention in https://github.com/node-ffi-napi/node-ffi-napi/pull/270 - the one about libffi.gyp.
@genaris @btsimonh - I tried steps given in https://github.com/node-ffi-napi/node-ffi-napi/pull/270 . Still I am getting same error.
I tried these node version v18.19.0 , v20.11.1, v22.11.0.
Could you please help me out with detailed steps to follow?
Hi @RinkalBhojani,
pls try these repos: "ref-napi": "https://github.com/btsimonh/ref-napi.git", "ref-array-di": "^1.2.2", "ref-struct-di": "^1.1.1", "ffi-napi": "https://github.com/btsimonh/node-ffi-napi.git",
for me, this set is working together for node 22.10.0, and should be ok with 18, 20, 22. It's not tested on <= 16, or on odd numbered node. One test failed for ff-napi, involving a nested 30,000 calls. Once reduced to 15,000, the test is passing.
The changes are a combination of all the resources I could find, plus adapting to use git actions over appveyer. Feel free to use those, or fork them. ffi-napi is a fork of @cclauss version. It include prebuilds for linux, windows, macos x64 macos arm64. I have yet to heavily test them in real environments, but this will be happening soon, as I do need it to work on all those platforms. It does install on windows without needing to build, and it did run my initial tests (accessing windows APIs for an updated version of https://github.com/btsimonh/node-windows-root-certs).
br, Simon
I am facing below issue on my windows machine while installation.
@TimoGlastra @berendsliedrecht @genaris - Do you have any idea for this?
It fails to build 'ffi-napi' related package.
Am I missing something or needs to changed