diff --git a/.github/workflows/build_and_test_debug.yml b/.github/workflows/build_and_test_debug.yml index 90f50238270..b1520800a6b 100644 --- a/.github/workflows/build_and_test_debug.yml +++ b/.github/workflows/build_and_test_debug.yml @@ -108,10 +108,10 @@ jobs: node-version: 18 cache: npm - - name: Update the npm-bundled version of node-gyp - run: | # https://github.com/nodejs/node-gyp/blob/main/docs/Updating-npm-bundled-node-gyp.md - npm -v - npm explore npm/node_modules/@npmcli/run-script -g -- npm_config_global=false npm install node-gyp@latest + - name: Force npm to use global installed node-gyp + run: | # https://github.com/nodejs/node-gyp/blob/main/docs/Force-npm-to-use-global-node-gyp.md + npm install --global node-gyp@latest + npm config set node_gyp $(npm prefix -g)/lib/node_modules/node-gyp/bin/node-gyp.js - name: Install NPM Dependencies run: npm ci