构建zeppelin时出现问题ERROR:生成npm ENOENT

时间:2017-01-27 16:53:28

标签: apache-zeppelin

我使用以下命令在ubuntu上构建zeppelin 0.8

  

mvn clean package -Pbuild-distr -Pyarn -Pspark-1.6   -Dspark.version = 1.6.0 -Phadoop-2.6 -Dhadoop.version = 2.6.0-cdh5.9.0 -DskipTests -Pvendor-repo

我收到以下错误

[WARNING] warning Unmet peer dependency "eslint@>=3.8.1".
[INFO] [4/4] Building fresh packages...
[INFO] $ bower install --silent
[INFO] Done in 77.54s.
[INFO]
[INFO] --- frontend-maven-plugin:1.3:yarn (yarn build) @ zeppelin-web ---
[INFO] Running 'yarn run build' in /home/[USER]/zeppelin/zeppelin-web
[INFO] yarn run v0.18.1
[INFO] $ npm-run-all clean
[ERROR] ERROR: spawn npm ENOENT
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
.

[INFO] Zeppelin: web Application ......................... FAILURE [1:20.415s]
[INFO] Zeppelin: Server .................................. SKIPPED
[INFO] Zeppelin: Packaging distribution .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:35.974s
[INFO] Finished at: Fri Jan 27 08:44:39 PST 2017
[INFO] Final Memory: 196M/464M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yarn (yarn build) on project zeppelin-web: Failed to run task: 'yarn run build' failed. (error code 1) -> [Help 1]
[ERROR]

1 个答案:

答案 0 :(得分:2)

在主机上安装npm解决了我的问题