This is an automated email from the ASF dual-hosted git repository. liyang pushed a commit to branch kylin5 in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/kylin5 by this push: new fd3b1313c0 fix frontend build sh fd3b1313c0 is described below commit fd3b1313c0fbbd9f4817714e887631538da98100 Author: huangchunyan <qingyanxiaon...@163.com> AuthorDate: Mon Apr 8 20:52:05 2024 +0800 fix frontend build sh --- build/release/build.sh | 2 +- kystudio/build/build.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/release/build.sh b/build/release/build.sh index 4549745e7d..f759bd3c52 100755 --- a/build/release/build.sh +++ b/build/release/build.sh @@ -29,7 +29,7 @@ echo 'Build front-end' if [ "${WITH_FRONT}" = "1" ]; then cd kystudio echo 'Install front-end dependencies' - npm install || { exit 1; } + npm install --registry=https://registry.npmjs.org/ --legacy-peer-deps || { exit 1; } echo 'Install front-end end' npm run build || { exit 1; } echo 'build front-end dist end' diff --git a/kystudio/build/build.js b/kystudio/build/build.js index 6b8add100c..1483a7f430 100644 --- a/kystudio/build/build.js +++ b/kystudio/build/build.js @@ -31,5 +31,6 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { ' Tip: built files are meant to be served over an HTTP server.\n' + ' Opening index.html over file:// won\'t work.\n' )) + process.exit(0) }) })