[fix](ui) clean npm cache before install (#14629)

npm ERR! Unexpected end of JSON input while parsing near '...ih/ae0E6HfGdwwO/\r\na'
This commit is contained in:
Jeffrey
2022-11-28 12:12:51 +08:00
committed by GitHub
parent ed92a8f81e
commit 2bc43f9757

View File

@ -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