-
Notifications
You must be signed in to change notification settings - Fork 244
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
Error while compiling versions 0.8.0 and above on Windows #267
Comments
I can't repro this, everything builds fine for me with this environment Windows 10 (18841) and node 10.15.1. It might be related to the Windows version 🤔 |
This is just happening on node 8.x or lower. Builds against v10 and v11 work fine. |
Is there a workaround for getting this to compile on node 8? I'm currently stuck on that version as its what visual studio ships. |
@dgriffen you'd probably have to just stick on the older version or fork it into another branch and keep up that way if you wanted to update. |
For anyone who arrives at this same issue: The problem is that the header files in the node sources define _WIN32_WINNT to be 0x502 when targeting node 8. In order for this to compile that needs to be set to 0x600 which it is in the node 10 sources. If you can somehow define this yourself then you will avoid the issue. |
Environment details
Windows 10, nodejs version 8.9.3
Issue description
npm install fails on Windows with a number of C++ errors. I had to downgrade to version 0.7.8 to make it work. Below is the output of npm install:
$ npm install
The text was updated successfully, but these errors were encountered: