From: Jérôme Benoit Date: Fri, 3 Feb 2023 13:40:26 +0000 (+0100) Subject: Fix npm -g usage with latest npm version X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f7497ddbde6b55f5fae58090e4f570dabf299844;p=mbt-docker.git Fix npm -g usage with latest npm version Signed-off-by: Jérôme Benoit --- diff --git a/Dockerfile b/Dockerfile index 3dd48fa..235b3dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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