Won't work - just errors.
See original GitHub issuenodejs 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:
- Created 5 years ago
- Reactions:9
- Comments:9
Top 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 >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
I tried uninstalling and then reinstalling without
--ignore-scripts
as suggested above, but I got the same error.Uninstall and reinstall without
--ignore-scripts
. It fixed the problem for me