diff --git a/.github/workflows/build-for-windows.yml b/.github/workflows/build-for-windows.yml index cf2560e072..553c51fe2f 100644 --- a/.github/workflows/build-for-windows.yml +++ b/.github/workflows/build-for-windows.yml @@ -55,7 +55,7 @@ jobs: - name: Force to latest node-gyp run: | npm install --global node-gyp@latest - for /f "delims=" %P in ('npm prefix -g') do npm config set node_gyp "%P\node_modules\node-gyp\bin\node-gyp.js" + npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} # install GNU make - name: Install gnu make using choclatey