You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "XinxingWang (Jira)" <ji...@apache.org> on 2020/09/25 19:38:00 UTC

[jira] [Created] (ZEPPELIN-5071) Appears when building zeppelin-web:'npm run build:dist' failed.

XinxingWang created ZEPPELIN-5071:
-------------------------------------

             Summary: Appears when building zeppelin-web:'npm run build:dist' failed.
                 Key: ZEPPELIN-5071
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5071
             Project: Zeppelin
          Issue Type: Bug
          Components: zeppelin-web
    Affects Versions: 0.9.0
         Environment: MavenVersion:Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
JavaVersion:1.8.0_141
OSVersion:Centos7.3

 
            Reporter: XinxingWang
         Attachments: 1.png

h3. When you use root user to build zepeelin on Linux host, because bower does not support root user execution, an exception will be thrown:
{code:java}
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 3
[ERROR] npm ERR! zeppelin-web@0.0.0 build:dist: `npm-run-all prebuild && grunt pre-webpack-dist && webpack && grunt post-webpack-dist`
[ERROR] npm ERR! Exit status 3
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the zeppelin-web@0.0.0 build:dist script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR!     /root/.npm/_logs/2020-09-25T18_56_09_331Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:22 min
[INFO] Finished at: 2020-09-26T02:56:09+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm build) on project zeppelin-web: Failed to run task: 'npm run build:dist' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 3 (Exit value: 3) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm build) on project zeppelin-web: Failed to run task

{code}
h3. You need to modify the following code in zeppelin-web/bower.json
{code:java}
"build:dist": "npm-run-all prebuild && grunt pre-webpack-dist && webpack && grunt post-webpack-dist",
"build:ci": "npm-run-all prebuild && grunt pre-webpack-ci && webpack && grunt post-webpack-dist",{code}
h3. change to:
{code:java}
"build:dist": "npm-run-all prebuild && bower install --silent --allow-root && grunt pre-webpack-dist && webpack && grunt post-webpack-dist",
"build:ci": "npm-run-all prebuild && bower install --silent --allow-root && grunt pre-webpack-ci && webpack && grunt post-webpack-dist","lint:watch": "esw --watch src",

{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)