add support for npm 11 (#10795)

This commit is contained in:
LitoMore
2025-01-11 03:14:15 +08:00
committed by GitHub
parent 973dac7f28
commit 1664b88ee6
4 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ jobs:
npm: '^10'
engine-strict: 'true'
- node: '22'
npm: '^10'
npm: '^11'
engine-strict: 'false'
steps:
- name: Checkout

View File

@@ -8,7 +8,7 @@ COPY package.json package-lock.json /usr/src/app/
# Without the badge-maker package.json and CLI script in place, `npm ci` will fail.
COPY badge-maker /usr/src/app/badge-maker/
RUN npm install -g "npm@^9.0.0"
RUN npm install -g "npm@^10"
# We need dev deps to build the front end. We don't need Cypress, though.
RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci

2
package-lock.json generated
View File

@@ -126,7 +126,7 @@
},
"engines": {
"node": "^20.10.0",
"npm": "^9.0.0 || ^10.0.0"
"npm": "^9 || ^10 || ^11"
}
},
"badge-maker": {

View File

@@ -213,7 +213,7 @@
},
"engines": {
"node": "^20.10.0",
"npm": "^9.0.0 || ^10.0.0"
"npm": "^9 || ^10 || ^11"
},
"type": "module",
"collective": {