From 2bc43f97574df2ed3afca3960db02147ec1b05e6 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Mon, 28 Nov 2022 12:12:51 +0800 Subject: [PATCH] [fix](ui) clean npm cache before install (#14629) npm ERR! Unexpected end of JSON input while parsing near '...ih/ae0E6HfGdwwO/\r\na' --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 936241cd65..c1b727c269 100755 --- a/build.sh +++ b/build.sh @@ -442,6 +442,7 @@ function build_ui() { ui_dist="${CUSTOM_UI_DIST}" else cd "${DORIS_HOME}/ui" + "${NPM}" cache clean --force "${NPM}" install --legacy-peer-deps "${NPM}" run build fi