From e81b2e161d5e0b3fb1c090814af64a2a1e6fba39 Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Fri, 6 Aug 2021 14:50:15 +0200 Subject: [PATCH] ci: fix Dockerfile npm install commands --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 74764b41..61eb93cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -101,9 +101,9 @@ COPY $SCRIPTS_DIRECTORY/$NODE_SETUP_SCRIPT /tmp/ RUN bash /tmp/$NODE_SETUP_SCRIPT && apt-get install -y nodejs && \ ### Install wanted npm version - npm install -g npm@$NPM_VERSION && \ + npm install -g --unsafe-perm npm@$NPM_VERSION && \ ### Install needed global npm packages - npm install -g @ionic/cli@$IONIC_VERSION cordova@$CORDOVA_VERSION cordova-res@$CORDOVA_RES_VERSION + npm install -g --unsafe-perm @ionic/cli@$IONIC_VERSION cordova@$CORDOVA_VERSION cordova-res@$CORDOVA_RES_VERSION ### Create, build, delete an empty cordova project to download necessary maven files and keep them in image RUN cd / && cordova create tmp-project && \