marp-team / marp-cli

A CLI interface for Marp and Marpit based converters
MIT License
1.92k stars 108 forks source link

marp-cli does not seem to find chromium #475

Open lu-zero opened 2 years ago

lu-zero commented 2 years ago

Version of Marp Tool

v2.1.2

Operating System

macOS

Environment

How to reproduce

  1. brew install chromium marp-cli
  2. echo '# hi' > /tmp/presentation.md
  3. marp -p /tmp/presentation.md

Expected behavior

having the preview opened in chromium

Actual behavior

[  INFO ] [Preview] Opening file:///tmp/presentation.html...
[ ERROR ] You have to install Google Chrome, Chromium, or Microsoft Edge to convert slide deck with current options.

Additional information

No response

yhatt commented 2 years ago

https://github.com/GoogleChrome/chrome-launcher/blob/master/src/chrome-finder.ts chrome-launcher module provided by Google Chrome seems to support finding Chromium binary, only on Linux.

lu-zero commented 2 years ago
export CHROME_PATH="/Applications/Chromium.app/Contents/MacOS/Chromium"

seems a satifying workaround, in case upstream is slow at addressing it.

Thank you a lot for the quick reply!