Skip to content

Commit

Permalink
Force npm to use global installed node-gyp.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Aug 15, 2023
1 parent 314f647 commit e52a7a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_and_test_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e52a7a8

Please sign in to comment.