From 1664b88ee61af572a36e310b715bd8162a46bc61 Mon Sep 17 00:00:00 2001 From: LitoMore Date: Sat, 11 Jan 2025 03:14:15 +0800 Subject: [PATCH] add support for npm 11 (#10795) --- .github/workflows/test-package-lib.yml | 2 +- Dockerfile | 2 +- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-package-lib.yml b/.github/workflows/test-package-lib.yml index 69c3329236757..3b9f82c05be88 100644 --- a/.github/workflows/test-package-lib.yml +++ b/.github/workflows/test-package-lib.yml @@ -23,7 +23,7 @@ jobs: npm: '^10' engine-strict: 'true' - node: '22' - npm: '^10' + npm: '^11' engine-strict: 'false' steps: - name: Checkout diff --git a/Dockerfile b/Dockerfile index d30fe2db54e35..4d937c66f96c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/package-lock.json b/package-lock.json index b287880bb88e4..56e38dc26c465 100644 --- a/package-lock.json +++ b/package-lock.json @@ -126,7 +126,7 @@ }, "engines": { "node": "^20.10.0", - "npm": "^9.0.0 || ^10.0.0" + "npm": "^9 || ^10 || ^11" } }, "badge-maker": { diff --git a/package.json b/package.json index 26489b23b2e26..465dd2039b5f2 100644 --- a/package.json +++ b/package.json @@ -213,7 +213,7 @@ }, "engines": { "node": "^20.10.0", - "npm": "^9.0.0 || ^10.0.0" + "npm": "^9 || ^10 || ^11" }, "type": "module", "collective": {