Skip to content

Commit d5aceb8

Browse files
Benjamin E. Coecallmehiphop
authored andcommitted
build: patch Windows container, fixing Node 10 (#610)
1 parent 6398df5 commit d5aceb8

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

handwritten/firestore/.kokoro/test.bat

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@
1717
cd /d %~dp0
1818
cd ..
1919

20-
call npm install -g npm@latest || goto :error
20+
@rem The image we're currently running has a broken version of Node.js enabled
21+
@rem by nvm (v10.15.3), which has no npm bin. This hack uses the functional
22+
@rem Node v8.9.1 to install npm@latest, it then uses this version of npm to
23+
@rem install npm for v10.15.3.
24+
call nvm use v8.9.1 || goto :error
25+
call node C:\Users\kbuilder\AppData\Roaming\nvm-ps\versions\v8.9.1\node_modules\npm-bootstrap\bin\npm-cli.js i npm -g || goto :error
26+
call nvm use v10.15.3 || goto :error
27+
call node C:\Users\kbuilder\AppData\Roaming\nvm-ps\versions\v8.9.1\node_modules\npm\bin\npm-cli.js i npm -g || goto :error
28+
2129
call npm install || goto :error
2230
call npm run test || goto :error
2331

handwritten/firestore/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"gts": "^0.9.0",
7171
"hard-rejection": "^2.0.0",
7272
"intelli-espower-loader": "^1.0.1",
73-
"jsdoc": "^3.5.5",
73+
"jsdoc": "3.5.5",
7474
"jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git",
7575
"linkinator": "^1.1.2",
7676
"mocha": "^6.0.0",

0 commit comments

Comments
 (0)