atom markdown报错:AssertionError: html-pdf: Failed to load PhantomJS module.

今天安装markdown-pdf之后运行的时候报错:

AssertionError: html-pdf: Failed to load PhantomJS module. You have to set the path to the PhantomJS binary using ‘options.phantomPath’

之后安装brew install phantomjs,还是报相同的错误。

直接换markdown-themeable-pdf就可以正常生成pdf了。

环境是mac,windows的可以参考这篇博客.

原文地址:https://www.cnblogs.com/xiaomingtx/p/5636192.html