Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

error phantomjs@1.9.15 install: node install.js : ELIFECYCLE #555

@stevekuznetsov

Description

@stevekuznetsov

Installing phantom.js 1.9.15 on AWS EC2 I intermittently see this failure in my console output:

Jun 14 07:46:21 npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
Jun 14 07:46:21 npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12
Jun 14 07:46:21 npm WARN origin-web-console@1.3.0-alpha No license field.
Jun 14 07:46:21 npm ERR! Linux 3.10.0-229.7.2.el7.x86_64
Jun 14 07:46:21 npm ERR! argv "node" "/bin/npm" "install" "--unsafe-perm"
Jun 14 07:46:21 npm ERR! node v0.10.42
Jun 14 07:46:21 npm ERR! npm  v3.7.3
Jun 14 07:46:21 npm ERR! code ELIFECYCLE
Jun 14 07:46:21 
Jun 14 07:46:21 npm ERR! phantomjs@1.9.15 install: `node install.js`
Jun 14 07:46:21 npm ERR! Exit status 1
Jun 14 07:46:21 npm ERR! 
Jun 14 07:46:21 npm ERR! Failed at the phantomjs@1.9.15 install script 'node install.js'.
Jun 14 07:46:21 npm ERR! Make sure you have the latest version of node.js and npm installed.
Jun 14 07:46:21 npm ERR! If you do, this is most likely a problem with the phantomjs package,
Jun 14 07:46:21 npm ERR! not with npm itself.
Jun 14 07:46:21 npm ERR! Tell the author that this fails on your system:
Jun 14 07:46:21 npm ERR!     node install.js
Jun 14 07:46:21 npm ERR! You can get information on how to open an issue for this project with:
Jun 14 07:46:21 npm ERR!     npm bugs phantomjs
Jun 14 07:46:21 npm ERR! Or if that isn't available, you can get their info via:
Jun 14 07:46:21 npm ERR!     npm owner ls phantomjs
Jun 14 07:46:21 npm ERR! There is likely additional logging output above.
Jun 14 07:46:21 
Jun 14 07:46:21 npm ERR! Please include the following file with any support request:
Jun 14 07:46:21 npm ERR!     /data/src/github.com/openshift/origin-web-console/npm-debug.log

Here is the relevant snippet (I think) of npm-debug.log:

123306 silly install phantomjs@1.9.15 /data/src/github.com/openshift/origin-web-console/node_modules/.staging/phantomjs-bd80f995
123307 info lifecycle phantomjs@1.9.15~install: phantomjs@1.9.15
123308 verbose lifecycle phantomjs@1.9.15~install: unsafe-perm in lifecycle true
123309 verbose lifecycle phantomjs@1.9.15~install: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/data/src/github.com/openshift/origin-web-console/node_modules/phantomjs/node_modules/.bin:/data/src/github.com/openshift/origin-web-console/node_modules/.bin:/bin:/data/src/github.com/openshift/origin/_output/etcd/bin:/data/src/github.com/openshift/origin/_output/local/bin/linux/amd64:/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin
123310 verbose lifecycle phantomjs@1.9.15~install: CWD: /data/src/github.com/openshift/origin-web-console/node_modules/phantomjs
123311 silly lifecycle phantomjs@1.9.15~install: Args: [ '-c', 'node install.js' ]
123312 silly lifecycle phantomjs@1.9.15~install: Returned: code: 1  signal: null
123313 info lifecycle phantomjs@1.9.15~install: Failed to exec install script
123314 verbose unlock done using /home/ec2-user/.npm/_locks/staging-134801eafffac3dc.lock for /data/src/github.com/openshift/origin-web-console/node_modules/.staging
123315 silly rollbackFailedOptional Starting
123316 silly rollbackFailedOptional Finishing
123317 silly runTopLevelLifecycles Starting
123318 silly runTopLevelLifecycles Finishing
123319 silly install printInstalled
123320 warn optional Skipping failed optional dependency /chokidar/fsevents:
123321 warn notsup Not compatible with your operating system or architecture: fsevents@1.0.12
123322 warn origin-web-console@1.3.0-alpha No license field.
123323 verbose stack Error: phantomjs@1.9.15 install: `node install.js`
123323 verbose stack Exit status 1
123323 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:239:16)
123323 verbose stack     at EventEmitter.emit (events.js:98:17)
123323 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
123323 verbose stack     at ChildProcess.emit (events.js:98:17)
123323 verbose stack     at maybeClose (child_process.js:766:16)
123323 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:833:5)
123324 verbose pkgid phantomjs@1.9.15
123325 verbose cwd /data/src/github.com/openshift/origin-web-console
123326 error Linux 3.10.0-229.7.2.el7.x86_64
123327 error argv "node" "/bin/npm" "install" "--unsafe-perm"
123328 error node v0.10.42
123329 error npm  v3.7.3
123330 error code ELIFECYCLE
123331 error phantomjs@1.9.15 install: `node install.js`
123331 error Exit status 1
123332 error Failed at the phantomjs@1.9.15 install script 'node install.js'.
123332 error Make sure you have the latest version of node.js and npm installed.
123332 error If you do, this is most likely a problem with the phantomjs package,
123332 error not with npm itself.
123332 error Tell the author that this fails on your system:
123332 error     node install.js
123332 error You can get information on how to open an issue for this project with:
123332 error     npm bugs phantomjs
123332 error Or if that isn't available, you can get their info via:
123332 error     npm owner ls phantomjs
123332 error There is likely additional logging output above.
123333 verbose exit [ 1, true ]

Please let me know if you would like other information about my system to help debug this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions