-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Windows install does not download binaries / Builds broken on node 17 #2344
Comments
Could you check the version of visual studio build tools you have installed and included within the path environment variable? For info about the required build tools you can take a look at https://github.com/nodejs/node-gyp#installation |
I probably installed Build Tools 2017 yesterday using |
let me know if you face any more issues |
Thanks, but I think the issue still exists, as far as I see it. I understand the behaviour is to install binaries on 64b Windows - without requiring the VS tools? |
I too would prefer to use serialport on a Windows machine without having to install the VS tools. The current version on npm.js is 9.2.5 but the latest binary release on github is 9.2.4. Usually there is only a short delay / no delay before the versions are brought in sync. Is it still the plan to provide a 9.2.5 binary release on GitHub? |
Sorry about that, I've pushed the tag. I'll start a separate thread about improving publishing. |
Looks like we don't compile on node 17 so the build is failing https://github.com/serialport/node-serialport/runs/4138697251?check_suite_focus=true |
Looks to me like the node 17 build fails because of missing header file |
Prebuild doesn't have 17.0.1 yet via node-abi https://github.com/electron/node-abi which gets it's version info from https://cdn.jsdelivr.net/gh/nodejs/node/doc/abi_version_registry.json which doesn't have 17.0.1 yet. It doesn't look like it will however, so we need to figure out where prebuild is getting which version to download... I opened an issue there prebuild/prebuild#284 I'll give it a day and if there isn't going to be a quick fix we might need to special case node 17 out of our builds. |
Is the situation any better with prebuildify? I've started work on switching to prebuildify post N-API and it looks pretty good so far; at the moment I'm trying to work out if V10 should be only a switch to N-API or also switch to prebuildify at the same time... |
It would be the same deal. Napi on the other hand would solve this. |
@reconbot is there anything I can do to contribute towards |
I have a draft prebuildify branch which I've not yet pushed to GitHub, which builds upon the N-API migration code. I'll try to share this once I get back to my dev machine. I'm still not sure if v10 should initially focus on the switch to N-API or if we should include prebuildify too; perhaps if I share that code and get some feedback it will help make that decision |
@GazHank that sounds great! I'll be happy to give you feedback tomorrow. |
@GazHank is this the branch you mentioned? https://github.com/GazHank/node-serialport/tree/napi |
Hi @jakobrosenberg thats the node-api migration branch (which is also viewable as a PR). I haven't had chance to publish the prebuildify branch yet; it is dependent up the node-api migration but a far smaller change |
looks like the builds are fixed in |
I had to remove node 17 builds but we're back in business |
So is it possible to install prebuilt libraries for Windows with: |
Calling
npm install serialport
on Windows 10 64-bit does not download the prebuilt binaries. Instead it tries to build from source which fails with the following message when the correct Visual Studio machinery is not installed:2021-11-05T23_58_41_948Z-debug.log
This happened on two machines, both 64-bit:
serialport
had disappeared. I think Node wanted to regenerate something idk. I then rannpm install serialport
which led to this report.The text was updated successfully, but these errors were encountered: