Description
Hi,
I put a simple test.js alone in a directory:
plotlib = require('nodeplotlib');
const data = [{x: [1, 3, 4, 5], y: [3, 12, 1, 4], type: 'line'}];
plotlib.plot(data);
then
npm install nodeplotlib
npm WARN saveError ENOENT: no such file or directory, open '/home/pierre/testPlotLib/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/pierre/testPlotLib/package.json'
These lines appear here but not when I install for my project.
Then
node test.js
(node:5472) UnhandledPromiseRejectionWarning: Error: spawn /home/pierre/testPlotLib/node_modules/nodeplotlib/dist/lib/xdg-open ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
at onErrorNT (internal/child_process.js:379:16)
at process._tickCallback (internal/process/next_tick.js:178:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:697:11)
at startup (internal/bootstrap/node.js:201:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)
(node:5472) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5472) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I have an apache local server running, but same error when I switch it off.
Any idea ?
Thanks