Fix npm -g usage with latest npm version
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Feb 2023 13:40:26 +0000 (14:40 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Feb 2023 13:40:26 +0000 (14:40 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Dockerfile

index 3dd48fa500256534275832de98f40551bcb07fa3..235b3dd494d96e58c5156ba739116283a190afda 100644 (file)
@@ -190,6 +190,7 @@ RUN set -ex \
 # Allow global npm packages install without sudo
 RUN set -ex \
   && mkdir ${USER_HOME_DIR}/.npm-global \
+  && mkdir ${USER_HOME_DIR}/.npm-global/lib \
   && chown -R ${USER}:${USER} ${USER_HOME_DIR}
 ENV NPM_CONFIG_PREFIX ${USER_HOME_DIR}/.npm-global