Stop npm from warning about version staleness

This commit is contained in:
David Boreham 2023-04-14 20:51:32 -06:00
parent 1443c6c6d2
commit f16e8d8e3e

View File

@ -29,6 +29,9 @@ RUN \
usermod -u ${CERC_HOST_UID} -g ${CERC_HOST_GID} ${USERNAME} && chown ${CERC_HOST_UID}:${CERC_HOST_GID} /home/${USERNAME}; \
fi
# Prevents npm from printing version warnings
ENV NO_UPDATE_NOTIFIER=true
RUN \
# Configure global npm install location, use group to adapt to UID/GID changes
if ! cat /etc/group | grep -e "^npm:" > /dev/null 2>&1; then groupadd -r npm; fi \