supranational / blst

Multilingual BLS12-381 signature library
Apache License 2.0
458 stars 175 forks source link

yarn and npm fail to install blst with error: "Error: downloading and building BLST native bindings" and "missing any Windows SDK" #155

Closed vdallco closed 1 year ago

vdallco commented 1 year ago

I'm trying to add the blst module with npm or yarn, but both produce the same errors:

"Error: downloading and building BLST native bindings" and "missing any Windows SDK" for VS2022.

I have several SDK components installed for VS2022, so why isn't it finding any? This issue doesn't happen when adding other modules. I've tried this on other machines and get the same errors. Any ideas?

dot-asm commented 1 year ago

Not really. Sorry. The referred message appears alien, it's not coming from blst. And "with npm or yarn" doesn't really tell me much. Is it appropriate to assume that you're trying to build with node-gyp? Well, even if it's the case, "missing any Windows SDK" would still have to be viewed as external problem. In sense the it would be between you and node-gyp, which I for one have no hands-on experience with. Not with Windows version that is...

dot-asm commented 1 year ago

Oh! Is it possible it's rather a question about blst-ts? In which case it would be more appropriate to pose the question there. As far as I can tell from their Github Actions the build procedure works on Windows...