Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.48 KB

already-installed-chromium.md

File metadata and controls

24 lines (16 loc) · 1.48 KB

The text below is taken from Issue #331.

If you run mermaid-cli with the --help flag, there's an option for --puppeteerConfigFile, which is a JSON configuration file for puppeteer.

These are options passed to puppeteer.launch.

The useful options for you are:

You'll probably want a file called puppeteerConfigFile.json with contents:

{
  "executablePath": "C:\\path\\to\\your\\chrome.exe"
}

Then run mermaid-cli with option mmdc --puppeteerConfigFile puppeteerConfigFile.json.

You might also be able to do the same thing with environment variables by following: https://pptr.dev/#environment-variables.

Btw, if you set PUPPETEER_SKIP_DOWNLOAD=1 as an env variable when running yarn install or npm install, it should skip downloading CHROMIUM too.