zeppelin-web: Failed to run task: 'npm install --color=false' failed

2,661 views
Skip to first unread message

Ophir Cohen

unread,
Jan 12, 2015, 4:44:38 AM1/12/15
to zeppelin-...@googlegroups.com
Hi Guys,
I'm working on it for hours and can't find the problem.
I keep getting the following error:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.16:npm (npm install) on project zeppelin-web: Failed to run task: 'npm install --color=false' failed. (error code 1) -> [Help 1]

While trying to build Zeppelin. Try on Ubuntu and Amazon's centos and keep getting the same result.

Can somebody has any idea what is the cause for that?

Thanks!
Ophir

Alex B

unread,
Jan 12, 2015, 4:50:49 AM1/12/15
to Ophir Cohen, zeppelin-...@googlegroups.com
It looks like on frontend app build some npm dependencies failed to install on your machine.
It might be because of some binary dependencies missing\need to be yum installed like a compiler toolchain, etc

can you post an `npm install` logs here please?

I also remember having difficulties on building it from root.

--
You received this message because you are subscribed to the Google Groups "zeppelin-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zeppelin-develo...@googlegroups.com.
To post to this group, send email to zeppelin-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--
Kind regards,
Alexander.

Ophir Cohen

unread,
Jan 12, 2015, 4:57:53 AM1/12/15
to Alex B, zeppelin-...@googlegroups.com
Thanks for the quick respons!
Here it is (from my Ubuntu):
>> npm install
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/home/ophchu/tech/zeppelin/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! System Linux 3.16.0-28-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/ophchu/tech/zeppelin
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /home/ophchu/tech/zeppelin/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ophchu/tech/zeppelin/npm-debug.log
npm ERR! not ok code 0

Ophir Cohen

unread,
Jan 12, 2015, 5:00:31 AM1/12/15
to Alex B, zeppelin-...@googlegroups.com
And this is the content of '/home/ophchu/tech/zeppelin/
npm-debug.log':

  1 0 info it worked if it ends with ok
  2 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
  3 2 info using n...@1.4.28
  4 3 info using no...@v0.10.33
  5 4 verbose node symlink /usr/bin/node
  6 5 error install Couldn't read dependencies
  7 6 error package.json ENOENT, open '/home/ophchu/tech/zeppelin/package.json'
  8 6 error package.json This is most likely not a problem with npm itself.
  9 6 error package.json npm can't find a package.json file in your current directory.
 10 7 error System Linux 3.16.0-28-generic
 11 8 error command "/usr/bin/node" "/usr/bin/npm" "install"
 12 9 error cwd /home/ophchu/tech/zeppelin
 13 10 error node -v v0.10.33
 14 11 error npm -v 1.4.28
 15 12 error path /home/ophchu/tech/zeppelin/package.json
 16 13 error code ENOPACKAGEJSON
 17 14 error errno 34
 18 15 verbose exit [ 34, true ]

Damien Corneau

unread,
Jan 12, 2015, 5:05:15 AM1/12/15
to Ophir Cohen, Alex B, zeppelin-...@googlegroups.com
Hi Ophir,

Thanks for the stack. It seems that you are running the npm command inside of Zeppelin main folder.
Npm is used inside of zeppelin-web only, so you might want to run it inside of /zeppelin-web/

Ophir Cohen

unread,
Jan 12, 2015, 5:08:30 AM1/12/15
to Damien Corneau, Alex B, zeppelin-...@googlegroups.com
OK,
Run it again in the zeppelin web:

ophchu@ophchu-Lenovo-G510:~/tech/zeppelin/zeppelin-web$ npm install
npm WARN package.json zeppel...@0.0.0 No repository field.
npm WARN package.json ansi-...@0.2.1 'repositories' (plural) Not supported. Please pick one as the 'repository' field
npm WARN deprecated grunt...@0.0.3: use grunt-ng-annotate instead
npm WARN deprecated ng...@0.4.1: use ng-annotate instead
npm ERR! Error: EACCES, mkdir '/home/ophchu/.npm/chalk/0.5.1'
npm ERR!  { [Error: EACCES, mkdir '/home/ophchu/.npm/chalk/0.5.1']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/home/ophchu/.npm/chalk/0.5.1',
npm ERR!   parent: 'grunt-contrib-imagemin' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.


npm ERR! System Linux 3.16.0-28-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/ophchu/tech/zeppelin/zeppelin-web

npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /home/ophchu/.npm/chalk/0.5.1
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/home/ophchu/.npm/chalk/0.5.1'

npm ERR! not ok code 0

You received this message because you are subscribed to a topic in the Google Groups "zeppelin-developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zeppelin-developers/cSi_FB4iD8g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zeppelin-develo...@googlegroups.com.

Damien Corneau

unread,
Jan 12, 2015, 5:11:32 AM1/12/15
to Ophir Cohen, Alex B, zeppelin-...@googlegroups.com
Lets follow npm's advice: "Please try running this command again as root/Administrator."

sudo npm install :)

Ophir Cohen

unread,
Jan 12, 2015, 5:57:52 AM1/12/15
to Damien Corneau, Alex B, zeppelin-...@googlegroups.com
:)

OK, now it works, first install all the npm needed dependency and than run the maven build.

Thanks you very much!
Reply all
Reply to author
Forward
0 new messages