8
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Markdown PDF でPDF変換しようとしたときに出るエラー "ERROR: exportPdf()" の解決方法 (Windows)

Last updated at Posted at 2020-05-28

日本語の解決策がなかなか出てこなかったので備忘録として...

エラー内容

右下にでてくるけど全然役にたたないエラー報告たち

Error: Failed to launch the browser process! TROUBLESHOOTING:
https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md

ERROR: exportPdf()

原因

settings.json に Chromium または Chrome 実行可能ファイルへのPathがないから

解決方法

Ctrl + "," で settings.json を開き, 以下の文を追加してあげてください.

"markdown-pdf.executablePath": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"

参考資料

もう普通にMarkdown PDFさんのとこに書いてありました。

前はこんなことしなくても勝手に増えてたのかな、ほかの環境だとこんなことしなくても動作するんですけどね...

8
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?