Skip to content

Commit 0c635c7

Browse files
committed
ci: install latest npm for older Node.js versions
1 parent 5f1a00e commit 0c635c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yml

+5
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ jobs:
6262
- uses: actions/setup-node@v3
6363
with:
6464
node-version: ${{ matrix.node }}
65+
# Node.js 14 ships with npm@6, which has trouble installing latest versions of itself
66+
- if: matrix.node == 14
67+
run: npm install -g npm@8
68+
# Install latest npm for older Node.js versions
69+
- run: npm install -g npm
6570
# Install node_modules
6671
- uses: actions/cache@v3
6772
id: cache-node_modules

0 commit comments

Comments
 (0)