Open aferreira44 opened 7 years ago
I got the same error as with your Ubuntu Guest VM on Arch with nodejs 8.1 and npm 4.6.
I used npm install markdown-pdf
to install it and node converter.js
to run my converter.
converter.js:
var markdownpdf = require("markdown-pdf")
markdownpdf().from("../notes.md").to("out.pdf", function () {
console.log("Done");
})
same issue for any docker image i tried, starting from alpine but ubuntu is also affected
Same issue here on MacOS Mojave
internal/streams/legacy.js:57
throw er; // Unhandled stream error in pipe.
^
Error: spawn /Users/doug/OneDrive - Realogy/notes/node_modules/phantomjs-prebuilt/lib/phantom\bin\phantomjs.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Same code works on Windows. And judging by an attempted spawn of "phantomjs.exe", seems like somehow it's assuming I'm on a windows machine?
I'm trying to convert a markdown file to pdf with the code below of
index.js
and I'm getting these errors after runnode index.js
.The first error below is on my Windows 10 Host Machine, and the second one is on my Ubuntu Guest VirtualBox VM.
Any idea of how to solve this?
index.js
Terminal Output Error - Windows Host VM
Terminal Output Error - Ubuntu Guest VM