Nelson Costa created ZEPPELIN-2642:
--------------------------------------
Summary: NPM error on Zeppelin build
Key: ZEPPELIN-2642
URL: https://issues.apache.org/jira/browse/ZEPPELIN-2642
Project: Zeppelin
Issue Type: Bug
Reporter: Nelson Costa
Hi, looking for some help/advice given I'm not an expert on this front-end
issues.
Running "mvn clean package -DskipTests" against latest master fails with this
error:
{noformat}
[INFO] $ bower install --silent
[INFO] Done in 2454.70s.
[INFO]
[INFO] --- frontend-maven-plugin:1.3:yarn (yarn build) @ zeppelin-web ---
[INFO] Found proxies: [genproxy{protocol='http', host='xxx', port=8080},
genproxyhttps{protocol='https', host='xxx', port=8080}]
[INFO] Running 'yarn run build:dist --https-proxy=http://xxx:8080
--proxy=http://xxx:8080' in /opt/src/zeppelin/zeppelin-web
[INFO] yarn run v0.18.1
[INFO] $ npm-run-all prebuild && grunt pre-webpack-dist && webpack && grunt
post-webpack-dist
[INFO]
[INFO] > [email protected] prebuild /opt/src/zeppelin/zeppelin-web
[INFO] > npm-run-all clean lint:once
[INFO]
[INFO]
[INFO] > [email protected] clean /opt/src/zeppelin/zeppelin-web
[INFO] > rimraf dist && rimraf .tmp
[INFO]
[INFO]
[INFO] > [email protected] lint:once /opt/src/zeppelin/zeppelin-web
[INFO] > eslint src
[INFO]
[INFO]
[INFO] /opt/src/zeppelin/zeppelin-web/src/app/app.js
[INFO] 166:1 error More than 1 blank line not allowed
no-multiple-empty-lines
[INFO] 180:3 error Unexpected var, use let or const instead no-var
[INFO] 180:27 error Extra space before value for key 'headers'
key-spacing
[INFO] 181:5 error Strings must use singlequote quotes
[INFO] 181:25 error Strings must use singlequote quotes
[INFO] 182:5 error Expected indentation of 2 spaces but found 4 indent
[INFO] 189:50 error Strings must use singlequote quotes
[INFO] 190:18 error Strings must use singlequote quotes
[INFO] 196:5 error Unexpected var, use let or const instead no-var
[INFO] 197:30 error Expected '===' and instead saw '==' eqeqeq
[INFO] 197:49 error Expected '!==' and instead saw '!=' eqeqeq
[INFO] 198:7 error Expected space or tab after '//' in comment
spaced-comment
[INFO]
[INFO] /opt/src/zeppelin/zeppelin-web/src/app/notebook/notebook.controller.js
[INFO] 57:34 warning Unnecessary escape character: \/ no-useless-escape
[INFO] 57:44 warning Unnecessary escape character: \/ no-useless-escape
[INFO] 57:59 warning Unnecessary escape character: \/ no-useless-escape
[INFO] 57:69 warning Unnecessary escape character: \/ no-useless-escape
[INFO]
[INFO]
/opt/src/zeppelin/zeppelin-web/src/app/visualization/builtins/visualization-nvd3chart.js
[INFO] 131:37 warning Unexpected mix of '&&' and '||' no-mixed-operators
[INFO] 131:54 warning Unexpected mix of '&&' and '||' no-mixed-operators
[INFO]
[INFO]
/opt/src/zeppelin/zeppelin-web/src/components/noteListDataFactory/noteList.datafactory.js
[INFO] 38:40 warning Unnecessary escape character: \/ no-useless-escape
[INFO] 38:45 warning Unnecessary escape character: \/ no-useless-escape
[INFO]
[INFO] ??? 20 problems (12 errors, 8 warnings)
[INFO]
[ERROR]
[ERROR] npm ERR! Linux 3.10.0-514.16.1.el7.x86_64
[ERROR] npm ERR! argv "/opt/src/zeppelin/zeppelin-web/node/node"
"/opt/src/zeppelin/zeppelin-web/node/node_modules/npm/bin/npm-cli.js" "run"
"lint:once"
[ERROR] npm ERR! node v6.9.1
[ERROR] npm ERR! npm v4.2.0
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! [email protected] lint:once: `eslint src`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the [email protected] lint:once script 'eslint src'.
[ERROR] npm ERR! Make sure you have the latest version of node.js and npm
installed.
[ERROR] npm ERR! If you do, this is most likely a problem with the zeppelin-web
package,
[ERROR] npm ERR! not with npm itself.
[ERROR] npm ERR! Tell the author that this fails on your system:
[ERROR] npm ERR! eslint src
[ERROR] npm ERR! You can get information on how to open an issue for this
project with:
[ERROR] npm ERR! npm bugs zeppelin-web
[ERROR] npm ERR! Or if that isn't available, you can get their info via:
[ERROR] npm ERR! npm owner ls zeppelin-web
[ERROR] npm ERR! There is likely additional logging output above.
[ERROR]
[ERROR] npm ERR! Please include the following file with any support request:
[ERROR] npm ERR! /root/.npm/_logs/2017-06-12T23_04_19_174Z-debug.log
[ERROR] ERROR: "lint:once" exited with 1.
[ERROR]
[ERROR] npm ERR! Linux 3.10.0-514.16.1.el7.x86_64
[ERROR] npm ERR! argv "/opt/src/zeppelin/zeppelin-web/node/node"
"/opt/src/zeppelin/zeppelin-web/node/node_modules/npm/bin/npm-cli.js" "run"
"prebuild"
[ERROR] npm ERR! node v6.9.1
[ERROR] npm ERR! npm v4.2.0
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! [email protected] prebuild: `npm-run-all clean lint:once`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the [email protected] prebuild script 'npm-run-all
clean lint:once'.
[ERROR] npm ERR! Make sure you have the latest version of node.js and npm
installed.
[ERROR] npm ERR! If you do, this is most likely a problem with the zeppelin-web
package,
[ERROR] npm ERR! not with npm itself.
[ERROR] npm ERR! Tell the author that this fails on your system:
[ERROR] npm ERR! npm-run-all clean lint:once
[ERROR] npm ERR! You can get information on how to open an issue for this
project with:
[ERROR] npm ERR! npm bugs zeppelin-web
[ERROR] npm ERR! Or if that isn't available, you can get their info via:
[ERROR] npm ERR! npm owner ls zeppelin-web
[ERROR] npm ERR! There is likely additional logging output above.
[ERROR]
[ERROR] npm ERR! Please include the following file with any support request:
[ERROR] npm ERR! /root/.npm/_logs/2017-06-12T23_04_19_223Z-debug.log
[ERROR] ERROR: "prebuild" exited with 1.
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
this command.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Zeppelin ........................................... SUCCESS
[INFO] Zeppelin: Interpreter .............................. SUCCESS
[INFO] Zeppelin: Zengine .................................. SUCCESS
[INFO] Zeppelin: Display system apis ...................... SUCCESS
[INFO] Zeppelin: Spark dependencies ....................... SUCCESS
[INFO] Zeppelin: Spark .................................... SUCCESS
[INFO] Zeppelin: Markdown interpreter ..................... SUCCESS
[INFO] Zeppelin: Angular interpreter ...................... SUCCESS
[INFO] Zeppelin: Shell interpreter ........................ SUCCESS
[INFO] Zeppelin: JDBC interpreter ......................... SUCCESS
[INFO] Zeppelin: Python interpreter ....................... SUCCESS
[INFO] Zeppelin: Apache Cassandra interpreter ............. SUCCESS
[INFO] Zeppelin: web Application .......................... FAILURE
[INFO] Zeppelin: Server ................................... SKIPPED
[INFO] Zeppelin: Packaging distribution ................... SKIPPED
[INFO] Zeppelin: R Interpreter ............................ SKIPPED
[INFO] Zeppelin: Helium development interpreter ........... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:
[INFO] Finished at:
[INFO] Final Memory:
[INFO] ------------------------------------------------------------------------
{noformat}
This error happened on node v6.9.1, npm v4.2.0, yarn v0.18.1
yarn-error.log:
{noformat}
yarn manifest:
No manifest
Lockfile:
No lockfile
Trace:
Error: http://registry.npmjs.org/moment: incorrect data check
at Zlib._handle.onerror (zlib.js:370:17)
{noformat}
Now, on commit https://github.com/apache/zeppelin/commit/cc0839efdec69173, we
added "npm-run-all prebuild" operation, which translates to "npm-run-all clean
eslint src".
Looks to me, "eslint src" action is failing.
[~1ambda] should we change "npm-run-all prebuild" to "npm-run-all clean" ?
Or should we start enforcing specific yarn versions that (I assume) don't lead
to this error?
Thanks
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)