-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Description
I have installed highcharts-export-server 4.0.1 via npm i highcharts-export-server -g. Running
highcharts-export-server -infile /tmp/vl1l4f0w.puh -outfile /tmp/d2s1f2yz.0t4 -width 600 results in this error message:
[error] - ENOENT: no such file or directory, open '/usr/lib/node_modules/highcharts-export-server//msg/startup.msg'
Error: ENOENT: no such file or directory, open '/usr/lib/node_modules/highcharts-export-server//msg/startup.msg'
at Object.openSync (node:fs:573:18)
at readFileSync (node:fs:452:35)
at Object.printLogo (file:///usr/lib/node_modules/highcharts-export-server/lib/utils.js:330:5)
at start (file:///usr/lib/node_modules/highcharts-export-server/bin/cli.js:51:12)
at file:///usr/lib/node_modules/highcharts-export-server/bin/cli.js:111:1
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)
This can be reproduced both in an Ubuntu docker container and on Windows.
I don't think that it matters, but this is the content of the -infile:
{"xAxis":{"categories":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},"series":[{"data":[8,9,5,4],"type":"line"},{"data":[5,3,4,2],"type":"line"}],"credits":{"enabled":false}}
Creating an empty file in the mentioned location fixes the issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels