Skip to content
This repository has been archived by the owner. It is now read-only.

Install phantomjs-prebuilt@2.1.14 failed: code ELIFECYCLE #730

Open
johnlinp opened this issue Jul 31, 2017 · 11 comments

Comments

@johnlinp
Copy link

commented Jul 31, 2017

I failed to install phantomjs-prebuilt@2.1.14 on Arch Linux. Here are the commands and outputs:

root@jacky:~# node -v
v8.2.1
root@jacky:~# npm -v
5.3.0
root@jacky:~# npm install -g phantomjs-prebuilt
/usr/bin/phantomjs -> /usr/lib/node_modules/phantomjs-prebuilt/bin/phantomjs

> phantomjs-prebuilt@2.1.14 install /usr/lib/node_modules/phantomjs-prebuilt
> node install.js

Considering PhantomJS found at /usr/bin/phantomjs
Looks like an `npm install -g`
Could not link global install, skipping...
Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Verified checksum of previously downloaded file
Extracting tar contents (via spawned process)
Removing /usr/lib/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1501478812483/phantomjs-2.1.1-linux-x86_64 -> /usr/lib/node_modules/phantomjs-prebuilt/lib/phantom
chmod failed: phantomjs was not successfully copied to /usr/lib/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.14 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.14 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-07-31T05_26_55_235Z-debug.log

Any help would be appreciated.

@olivier-mauras

This comment has been minimized.

Copy link

commented Aug 3, 2017

Same problem here

@robinmin

This comment has been minimized.

Copy link

commented Aug 4, 2017

me tooooooooooooooo!

@vasttian

This comment has been minimized.

Copy link

commented Aug 4, 2017

I have the same problem

@RustyRaptor

This comment has been minimized.

Copy link

commented Aug 7, 2017

Same here Ubuntu 16.04 Node 8.x
What do?

@RustyRaptor

This comment has been minimized.

Copy link

commented Aug 7, 2017

Ok guys I fixed this by downgrading to Nodejs 6.x
If you are using 6.x already try just reinstalling it. So cheap lesson learned. LTS > Latest unless you absolutely need the latest features.

@jurgenhaas

This comment has been minimized.

Copy link

commented Aug 16, 2017

Same problem on Ubuntu 16.04 with Node 6.10.0 and npm 5.3.0

@gitcoffee

This comment has been minimized.

Copy link

commented Aug 22, 2017

me too!??

@acd10

This comment has been minimized.

Copy link

commented Sep 1, 2017

I had a similar problem. In my case phantomjs-prebuilt was missing from devDependencies in packages.json. I added it manually and it seemed to work fine after that.

@mydaoyuan

This comment has been minimized.

Copy link

commented Sep 7, 2017

npm install phantomjs-prebuilt@2.1.14 --ignore-scripts

see this stackoverflow

@anitaIncaendo

This comment has been minimized.

Copy link

commented Sep 9, 2017

In your case you have issue phantomjs-prebuilt@2.1.14 during npm install so install this package manually using command

npm install phantomjs-prebuilt@2.1.14 --ignore-scripts

OR can try
apt-get install -y bzip2

@RustyRaptor

This comment has been minimized.

Copy link

commented Sep 28, 2017

I think we should close this thread. We kinda figured it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
10 participants
You can’t perform that action at this time.