Medium / phantomjs

NPM wrapper for installing phantomjs
Other
1.42k stars 436 forks source link

"node install.js" fails silently #678

Closed vernak2539 closed 7 years ago

vernak2539 commented 7 years ago

I'm running into the problem where on the postInstall, or so I think, the following line is executed, but fails silently, causing our TC build to fail every time.

> phantomjs-prebuilt@2.1.14 install /opt/teamcity_1/work/7beaa493b1ca74b5/node_modules/phantomjs-prebuilt
> node install.js

output from npm install --verbose is basically the same

npm info lifecycle phantomjs-prebuilt@2.1.7~install: phantomjs-prebuilt@2.1.7

> phantomjs-prebuilt@2.1.7 install /opt/teamcity_1/work/7beaa493b1ca74b5/node_modules/phantomjs-prebuilt
> node install.js

I am then able to go into the box and run the following command, which works and downloads the tar and installs it.

node /opt/teamcity_1/work/7beaa493b1ca74b5/node_modules/phantomjs-prebuilt/install.js

I've tried npm cache clean before an install and retrying various times. This fails > 50% of the time.

platform: Linux Centos 7 node: v6.5.0 (npm 3.10.3) prebuilt version: ^2.1.7

I should mention it works flawlessly on macOS, every time.

Tried to downgrade to 2.1.10 and 2.1.7 with no luck.

This started intermittently from about 21 Feb, but has now happens all the time.

vernak2539 commented 7 years ago

seemed to be something with the permissions of the user/owner running the task....