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

Is there a way to download chromium once?

Open Gryhyphen opened this issue 5 years ago • 2 comments

I'm hoping it's possible to get the mermaid cli tool to not download Chromium r800071 every time I run npx -p @mermaid-js/mermaid-cli mmdc .

I'm scratching my head a bit because it feels like it's something that should be possible, but I don't really know how.

It would save me like 20-30 seconds per time I run the command if it just kept a copy of it around somewhere.

I'm on windows. Any help would be appreciated!

Gryhyphen avatar Sep 16 '20 02:09 Gryhyphen

Unfortunately, I do not have any input. If you find a way, please, share via PR :smile:

MindaugasLaganeckas avatar Oct 01 '20 09:10 MindaugasLaganeckas

Just as an FYI.

Puppeteer can skip the download through env variables but this is not the standard approach as outlined here:

When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) that is guaranteed to work with the API. To skip the download, or to download a different browser, see Environment variables.

Haven't checked it myself but could --puppeteerConfigFile be used for that?

BastianZim avatar Nov 24 '20 13:11 BastianZim

Duplicate of #331

MindaugasLaganeckas avatar Oct 02 '22 11:10 MindaugasLaganeckas