Skip to content

Commit c7c1ebe

Browse files
committed
chore: Manually set node-gyp path so that windows ci can find msvs correctly
1 parent 4bb220f commit c7c1ebe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
- name: Install Dependencies
21-
run: npm install
21+
run: |
22+
npm config set node_gyp "$PWD/node_modules/node-gyp/bin/node-gyp.js"
23+
npm config get node_gyp
24+
npm install
2225
- name: Test
2326
run: npm test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"eslint-plugin-standard": "^4.0.1",
5555
"gen-esm-wrapper": "^1.1.0",
5656
"mocha": "^8.1.3",
57+
"node-gyp": "^9.1.0",
5758
"nyc": "^15.1.0",
5859
"os-dns-native": "^1.0.0",
5960
"ts-node": "^10.9.1",

0 commit comments

Comments
 (0)