repositories
/
mbt-docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
018f8f6
)
Fix npm -g usage with latest npm version
author
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 3 Feb 2023 13:40:26 +0000
(14:40 +0100)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/Dockerfile
b/Dockerfile
index 3dd48fa500256534275832de98f40551bcb07fa3..235b3dd494d96e58c5156ba739116283a190afda 100644
(file)
--- 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