-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation failed due PhantomJS #161
Comments
i ran into this recently on centos 7 using node 8x lts and the most recent version of highcharts from npm . for anyone else that needs to work around it, i installed |
@ratmav , using that approach gives me this error, when I try to run the server:
|
haven't run into that yet, but i probably will once i get to that point. it's probably some symlink/path thing. if i run into it and find a fix before you do, i'll let you know. |
After inspecting
That explains the error I've got. You're likely to have lots of packages installed globally. |
yeah, you have to copy all the dependencies as well as the top level highcharts package. pretty sure that's what the |
The workaround is this:
|
I got past the error by installing |
Installation also fails on CentOS Linux release 7.6.1810 (Core) due to some phantomjs weirdness:
This is what the debug log says: 2019-05-08T09_17_57_007Z-debug.log UPDATE: Suggested workaround from @aik099 works. Here's what's needed on CentOS v7 (as root):
|
On my almalinux 8.5: node build.js |
@Pascal76 Sorry for the late reply. As for your issue, at some point there was a problem with the |
Expected behaviour
Running
npm install highcharts-export-server -g
command won't end up in error.Actual behaviour
Running
npm install highcharts-export-server -g
command fails (if I remove-g
flag, then it works, but I need it globally installed of course):Reproduction steps
The
/usr/local/lib/node_modules/highcharts-export-server/node_modules/phantomjs-prebuilt/lib
folder was supposed to be created somewhere the middle of installation, but it didn't and therefore attempt to writelocation.js
file for testing in there failed.I have PhantomJS present in
/usr/local/bin
, but even if it was missing the issue would still happen. At the moment whenlocation.js
is to be copied the/usr/local/lib/node_modules/highcharts-export-server
folder is also missing.I can't upgrade unfortunately.
The text was updated successfully, but these errors were encountered: