From 1174a09b2d9dbe9baae6baba17f1a23b5c17d025 Mon Sep 17 00:00:00 2001 From: Agus Hilman Date: Wed, 8 May 2024 19:41:57 +0700 Subject: [PATCH] Fixed kpi-build-error --- Dockerfile | 2 +- docker/init.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c11634760d..5dfedcf7c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -116,7 +116,7 @@ WORKDIR ${KPI_SRC_DIR}/ RUN rm -rf ${KPI_NODE_PATH} && \ npm install -g npm@8.5.5 && \ - npm install -g check-dependencies && \ + npm install -g check-dependencies@1.1.0 && \ rm -rf "${KPI_SRC_DIR}/jsapp/fonts" && \ rm -rf "${KPI_SRC_DIR}/jsapp/compiled" && \ npm install --quiet && \ diff --git a/docker/init.bash b/docker/init.bash index cb6a336fa9..873f35b50e 100755 --- a/docker/init.bash +++ b/docker/init.bash @@ -59,7 +59,7 @@ if [[ ! -d "${KPI_SRC_DIR}/staticfiles" ]] || ! python "${KPI_SRC_DIR}/docker/ch echo "Syncing \`npm\` packages…" if ( ! check-dependencies ); then - npm install --quiet > /dev/null 2>&1 + npm install --legacy-peer-deps --quiet > /dev/null 2>&1 else npm run postinstall > /dev/null 2>&1 fi