Skip to content

Commit 468cbc2

Browse files
authored
build: patch Windows container, fixing Node 10 (#698)
1 parent 5d55817 commit 468cbc2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.kokoro/test.bat

+9-1
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

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"eslint-plugin-prettier": "^3.0.0",
100100
"gts": "^1.0.0",
101101
"intelli-espower-loader": "^1.0.1",
102-
"jsdoc": "^3.5.4",
102+
"jsdoc": "3.5.5",
103103
"jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git",
104104
"linkinator": "^1.1.2",
105105
"mocha": "^6.0.0",

0 commit comments

Comments
 (0)