marp-cli icon indicating copy to clipboard operation
marp-cli copied to clipboard

It dosen't work for me.

Open slatbox opened this issue 6 years ago • 14 comments

How to fix this:

[ INFO ] Converting 1 markdown... [ ERROR ] Failed converting Markdown. (Could not find browser revision 737027. Run "npm install" or "yarn install" to download a browser binary.)

slatbox avatar Apr 20 '20 12:04 slatbox

Probably Google Chrome is not installed in your environment. You can see this notice in README.md:

:information_source: You have to install Google Chrome (or Chromium) to convert slide deck into PDF, PPTX, and image(s).

yhatt avatar Apr 20 '20 13:04 yhatt

Oh I see.Yes it is because of chrome.Thanks a lot. @yhatt

slatbox avatar Apr 21 '20 10:04 slatbox

:+1:

I think there is room for improvement in this error message because of misleading.

yhatt avatar Apr 21 '20 10:04 yhatt

Created new issue #220 about the problem of error message. Close this to mark as resolved.

yhatt avatar Apr 21 '20 10:04 yhatt

@yhatt I received the some error message. And I am absolutely certain that I have Chromium installed.

carlee0 avatar Oct 18 '20 20:10 carlee0

Typically Marp should show "Failure to export. It requires to install Google Chrome (or Chromium) for exporting." if lacked Chrome. In this case, try to set custom chrome path in extension setting, and export again after restart VS Code.

If you met to "Could not find browser revision...", that is unexpected error. Something wrong might have been occurred while installation of extension. Try re-install Marp extension.

yhatt avatar Oct 19 '20 00:10 yhatt

@yhatt Thank you for your reply. I've added the chrome path in the extension setting and restarted VSCodium (could this be the problem?). The error message changed: "Failure to export: [CLIError] Failed converting Markdown. (Protocol error (Target.setDiscoverTargets): Target closed.)". It seems to be unrelated to marp this time...

carlee0 avatar Oct 19 '20 11:10 carlee0

This is another probability if you are using Linux:

NOTE: We've known to fail the export command if both of VS Code and Chromium have installed by snap: marp-team/marp-cli#287. It's probably insecure but setting custom Chrome path to the raw binary of snap Chromium may help you as a workaround.

‐ https://github.com/marp-team/marp-vscode/releases/v0.15.1

yhatt avatar Oct 19 '20 12:10 yhatt

@yhatt Sorry, I don't think that is the issue. I am on Mac and I installed VSCodium with brew, Chromium from binary.

carlee0 avatar Oct 19 '20 14:10 carlee0

OK, I can reproduce the same error in macOS when setting /Applications/xxxxxx.app as Chrome path.

It's actually a wrong path so you have to set like /Applications/xxxxxx.app/Contents/MacOS/xxxxxx. See also: https://github.com/marp-team/marp-vscode/issues/84#issuecomment-543485302

yhatt avatar Oct 19 '20 14:10 yhatt

Setting the path to /Applications/Chromium.app/Contents/MacOS/Chromium and restart VSCodium did the trick! :) Thank you so much, @yhatt!

carlee0 avatar Oct 19 '20 21:10 carlee0

@yhatt I got a similar error Failure to export: [CLIError] Failed converting Markdown. (Protocol error (Target.setAutoAttach): Target closed.) with different settings. My OS is Windows 11 and the path to Microsoft Edge is set, while I'm not sure how I can set the path to chromium within Edge.

5mechang avatar Dec 21 '22 08:12 5mechang

@5mechang Normally Marp in Windows will automatically find out a proper executable of MS Edge without specifying the browser path manually. Try with no specific path settings.

Please help us to post to GitHub Discussions rather than taking over closed issues.

yhatt avatar Dec 21 '22 13:12 yhatt

@yhatt Thank you for your quick response. Unfortunatelly the error hasn't been solved with no path. I'll check the settings of the PC which can export successfully.

5mechang avatar Dec 22 '22 05:12 5mechang