Unable to properly invoke markdown-pdf
See original GitHub issueHello, just updated and tried to use it again with very simple invocation:
markdown-pdf doc.md
I expected a doc.pdf
to be created. Instead I got the following error message:
internal/validators.js:118
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received null
at validateString (internal/validators.js:118:11)
at normalizeSpawnArguments (child_process.js:406:3)
at spawn (child_process.js:546:13)
at Object.execFile (child_process.js:232:17)
at WriteStream.<anonymous> (/usr/local/lib/node_modules/markdown-pdf/index.js:117:22)
at WriteStream.emit (events.js:333:22)
at finishMaybe (_stream_writable.js:697:14)
at _stream_writable.js:673:7
at WriteStream._final (internal/fs/streams.js:377:3)
at callFinal (_stream_writable.js:666:10) {
code: 'ERR_INVALID_ARG_TYPE'
}
Aside it created an empty doc.pdf
file, also indicating that it’s not a permission issue on my system.
I am using macOS Catalina.
Cheers, Florian
Issue Analytics
- State:
- Created 4 years ago
- Reactions:13
- Comments:12
Top Results From Across the Web
Developers - Unable to properly invoke markdown-pdf -
Hello, just updated and tried to use it again with very simple invocation: markdown-pdf doc.md. I expected a doc.pdf to be created.
Read more >Unable to export to pdf from markdown · Issue #166 - GitHub
I dont know much about this stuff, im using VS code for a project and im facing a problem while converting the markdown...
Read more >"Couldn't load plugin" when calling knitr::include_graphics ...
am trying to include a pdf-graphic with r-markdown. Oddly, the output with Pandoc to pdf works flawlessly. The html output writes Couldn't ...
Read more >R Markdown with \newif fails to compile to pdf after update
Thanks. Actually, I do now have a workaround: configure RStudio to use panic 2.13. Then all my files compile correctly without problems ( ......
Read more >15 Common Problems with rmarkdown (and some solutions)
Develop code in chunks and execute the chunks until they work, then move on. ... render_args, render_meta) : Failed to compile common-problems.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This answer from #181 worked for me on Ubuntu 18.04:
markdown-pdf -p $(which phantomjs) mymarkdown.md
Same issue here on macos Mojave 10.14.6, I tried markdown-pdf v9.0.0 and v10.0.0
Same error but line 117