From 16c1e6522dfa90240b6c89d3b37092355ea9777d Mon Sep 17 00:00:00 2001 From: Zanna_37 <> Date: Wed, 7 Dec 2022 00:00:32 +0100 Subject: [PATCH] fix: force use of npm v9 This solves a lot of permission issues. See: - https://github.com/npm/rfcs/issues/546#issuecomment-1280967238 - https://stackoverflow.com/questions/70298238/getting-eaccess-when-running-npm-8-as-root --- docker/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index f92463d..a9f61d3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,5 +10,8 @@ RUN apt-get update && apt-get install -y \ nodejs \ && rm -rf /var/lib/apt/lists/* +# Workaround to upgrade npm to 9 # TODO: Remove when npm is in LTS +RUN npm install -g npm@latest + # Reset parent entrypoint ENTRYPOINT []