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

The "phantomjs-prebuilt/lib/location.js" file is not created during installation #813

Open
aik099 opened this issue Aug 30, 2018 · 0 comments

Comments

@aik099
Copy link

aik099 commented Aug 30, 2018

When using phantomjs-prebuilt v2.1.14 as dependency for HighCharts Node Export Server (see https://github.com/highcharts/node-export-server), then "phantomjs-prebuilt/lib/location.js" file is not created during installation resulting in non-working PhantomJS:

→ npm install highcharts-export-server -g          
/usr/local/bin/highcharts-export-server -> /usr/local/lib/node_modules/highcharts-export-server/bin/cli.js

> phantomjs-prebuilt@2.1.14 install /usr/local/lib/node_modules/highcharts-export-server/node_modules/phantomjs-prebuilt
> node install.js

Considering PhantomJS found at /usr/local/bin/phantomjs
Found PhantomJS at /usr/local/bin/phantomjs ...verifying
Writing location.js file
Error checking path, continuing { Error: EACCES: permission denied, open '/usr/local/lib/node_modules/highcharts-export-server/node_modules/phantomjs-prebuilt/lib/location.js'
    at Object.fs.openSync (fs.js:652:18)
    at Object.fs.writeFileSync (fs.js:1299:33)
    at writeLocationFile (/usr/local/lib/node_modules/highcharts-export-server/node_modules/phantomjs-prebuilt/lib/util.js:84:6)
    at Promise._successFn (/usr/local/lib/node_modules/highcharts-export-server/node_modules/phantomjs-prebuilt/install.js:375:11)
    at nextTickCallback (/usr/local/lib/node_modules/highcharts-export-server/node_modules/kew/kew.js:47:28)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/usr/local/lib/node_modules/highcharts-export-server/node_modules/phantomjs-prebuilt/lib/location.js' }
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/local/lib/node_modules/highcharts-export-server/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1533892810919/phantomjs-2.1.1-linux-x86_64 -> /usr/local/lib/node_modules/highcharts-export-server/node_modules/phantomjs-prebuilt/lib/phantom
chmod failed: phantomjs was not successfully copied to /usr/local/lib/node_modules/highcharts-export-server/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/2018-08-10T09_20_17_049Z-debug.log
root at prod-mbp in /tmp/phantomjs

See more at highcharts/node-export-server#161

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant