From ebd3e3ce02e37158f4b69014e00b46713a6b4de7 Mon Sep 17 00:00:00 2001 From: JoelBirlingmairBeastCode <31551523+JoelBirlingmairBeastCode@users.noreply.github.com> Date: Tue, 23 Aug 2022 20:51:30 -0500 Subject: [PATCH] Use special node gyp --- .github/workflows/build-for-windows.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-for-windows.yml b/.github/workflows/build-for-windows.yml index 5438283bc6..da7cdf5816 100644 --- a/.github/workflows/build-for-windows.yml +++ b/.github/workflows/build-for-windows.yml @@ -33,11 +33,14 @@ jobs: npm install --global yarn yarn --version - - name: Install build tools for Node GYP - run: npm install --global windows-build-tools@4.0.0 - - - name: update Node GYP to latest - run: npm install -g node-gyp@latest + + - name: Update node-gyp + run: | + $WhereNode = Get-Command node | Select-Object -ExpandProperty Definition + $NodeDirPath = Split-Path $WhereNode -Parent + $NodeModulesPath = $NodeDirPath + "\node_modules\npm\node_modules\npm-lifecycle" + cd $NodeModulesPath + npm install node-gyp@8.x # install GNU make - name: Install gnu make using choclatey