question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Won't work - just errors.

See original GitHub issue

nodejs 10.9.0

> npm install -g markdown-pdf
> markdown-pdf test.md
internal/validators.js:125
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
    at validateString (internal/validators.js:125:11)
    at normalizeSpawnArguments (child_process.js:394:3)
    at spawn (child_process.js:519:38)
    at Object.execFile (child_process.js:216:15)
    at WriteStream.<anonymous> (C:\Users\username\AppData\Roaming\npm\node_modules\markdown-pdf\index.js:117:22)
    at WriteStream.emit (events.js:187:15)
    at finishMaybe (_stream_writable.js:641:14)
    at stream._final (_stream_writable.js:619:5)
    at WriteStream._final (internal/fs/streams.js:264:3)
    at callFinal (_stream_writable.js:612:10)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:9
  • Comments:9

github_iconTop GitHub Comments

8reactions
bronzehedwickcommented, Mar 25, 2019

I tried uninstalling and then reinstalling without --ignore-scripts as suggested above, but I got the same error.

4reactions
AlbertoMontalesicommented, Mar 22, 2019

Uninstall and reinstall without --ignore-scripts. It fixed the problem for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Websites don't load - troubleshoot and fix error messages
Are you having trouble getting a website to load? This article will show you how to fix the problem so you can get...
Read more >
How To Fix Xbox App Errors & Problems In Windows 10
If you are having problems with the Xbox app crashing , freezing, not opening, not launching games, or perhaps you keep getting error...
Read more >
Fix "Aw, Snap!" page crashes and other page loading errors
If that didn't work... · Step 1: Check your internet connection · Step 2: Clear your cache · Step 3: Close other tabs...
Read more >
javascript - --fix doesn't fix the errors using eslint - Stack Overflow
I'm using eslint in visual code to format the js files but it gives me errors everytime i run it ...
Read more >
if / else errors - learn how to fix these - Codecademy
Have a look and make sure you don't have any semicolons on your `else` or your ... number you are working on and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found