node-pandoc icon indicating copy to clipboard operation
node-pandoc copied to clipboard

Packaged app can't find Pandoc

Open lowercasename opened this issue 6 years ago • 1 comments

Hi, thank you for building this great module! It runs just fine through electron, but after I package the app with electron-builder or electron-packager, trying to use Pandoc in the app gives me the following error:

Uncaught Exception:
Error: spawn pandoc ENOENT

I'm an Electron and Node novice, but from what I've read it appears that this means the app can't find Pandoc. Some command line tests:

> which pandoc
/usr/local/bin/pandoc
> pandoc -v
pandoc 2.5
Compiled with pandoc-types 1.17.5.4, texmath 0.11.1.2, skylighting 0.7.4
> echo $PATH
/usr/local/sbin:/usr/local/bin: ...

lowercasename avatar Jan 12 '19 03:01 lowercasename

My apologies for never responding until now...

I've not yet worked with Electron. Are you trying to include Pandoc within an app you're creating for distribution? If that's the case, you'd need to talk w/ Pandoc directly for permission.

...after a bit of digging I did find this though: https://niebert.github.io/PanDocElectron/ Would that be of help to you?

eshinn avatar Sep 26 '19 20:09 eshinn