-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Unable to build binary modules on windows-latest #68
Comments
Turns out this is an issue with node-gyp and visual studio 2019. After coming through some steps here nodejs/node-gyp#1663 I was able to figure out a way through
I use a matrix for multiple OS's so I also have this line to only run it on windows.
|
I tried this job but it's not working. Any suggestion what is wrong? publish_on_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 14
- name: Update npm
run: npm install --global npm@latest
- name: Patch node-gyp to support Visual Studio 2019
shell: powershell
run: |
npm install --global node-gyp@latest
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
- name: Install npm dependencies
run: npm install
- name: Release
run: npm run release
And I have the same error. I think some C headers are missing |
Error log
|
@kiruh I spent a lot of time trying to compile a native modules on windows-latest system but didn't succeed. What I ended up doing is installing vs 2017 which helped. Here is the installing script https://github.com/vladimiry/ElectronMail/blob/4104ef5bfe4dc613c68f3aef67264d67394475cb/scripts/ci/github/install-vs-build-tools.ps1 + its call https://github.com/vladimiry/ElectronMail/blob/4104ef5bfe4dc613c68f3aef67264d67394475cb/scripts/ci/github/package-app.ps1#L2-L3. Updating node-gyp is also required in my case https://github.com/vladimiry/ElectronMail/blob/1d5955b80d705ce2a789fafa6c40198f32637986/scripts/ci/github/install-node-gyp.ps1#L1 but that's a little different story. It helps with compiling some native modules I use, but only some, not all of them. Here is what gets installed by the above-referenced "install-vs-build-tools.ps1" script (installing takes ~ 3.5 minutes)
|
@vladimiry Thanks |
@reconbot can you post full version of working config? |
@kiruh with node 14 I no longer have an issue but it looks like you need to |
@reconbot I tried updating I described it in #280 |
WEEPKRK-234: Fix logging path argument for newer Spring Boot versions
I think this is just a path issue. As part of node serialport's test process I need to ensure we can build the binary. I run
node-gyp rebuild
on the binary package and I get the following error.full stack below
https://github.com/serialport/node-serialport/runs/240073493
The text was updated successfully, but these errors were encountered: