From ec6de36b47912db046750544e759f12640ae03cf Mon Sep 17 00:00:00 2001 From: chris48s Date: Tue, 24 Aug 2021 22:00:49 +0100 Subject: [PATCH] use the right version of NPM in docker build --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index ec2e161175d80..99b48fb7acde0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +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@>=7" # 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