Skip to content

Commit

Permalink
chore: update node-gyp
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Mar 17, 2022
1 parent d626eae commit 9ee77a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ jobs:
versionSpec: $(node_version)
displayName: 'Install Node.js'
- script: |
# update node-gyp to latest for support in detecting VS 2022 toolchain
npm install -g node-gyp@latest
# Resolve to node-gyp.js
# Remove this once node-version > 17.4.x or > 16.14.0,
# which ships with npm > 8.4.0 that has support for VS 2022 toolchain.
$env:npm_config_node_gyp=$(Join-Path $(Get-Command node-gyp.cmd).Path "..\node_modules\node-gyp\bin\node-gyp.js" -Resolve)
npm i
displayName: 'Install dependencies and build'
- script: |
Expand Down

0 comments on commit 9ee77a3

Please sign in to comment.