Open raffaem opened 6 months ago
Downgrading to 9.1.7 with:
sudo npm install -g @mermaid-js/mermaid-cli@9.1.7
makes mmdc work again.
Same issue for me. Downgrading to 9.1.7 also worked.
Still same issue. @mermaid-js any ideas?
Still same issue. https://github.com/mermaid-js any ideas?
If you run npm install @mermaid-js/mermaid-cli
(without sudo
) are there any errors shown?
[!Note]
Running
npm install @mermaid-js/mermaid-cli
without the-g
flag will install it only in the current folder.
Puppeteer v19.0.0 now downloads Chromium into the ~/.cache/puppeteer
folder by default. It's possible that this folder cannot be written/loaded from (e.g. if you used sudo
, and that folder is now locked to the admin user only).
Deleting the ~/.cache/puppeteer
folder and rerunning npm install @mermaid-js/mermaid-cli
might help!
You can also try reading https://pptr.dev/troubleshooting#could-not-find-expected-browser-locally to download puppeteer into a different folder using PUPPETEER_CACHE_DIR=~/my-folder-to-download-puppeteer-to
cd
I need to convert a markdown mermaid file contains latex expressions, so only the recent version supports latex.
I keep receiving Error: Could not find Chromium (rev. 1108766).
I need to convert a markdown mermaid file contains latex expressions, so only the recent version supports latex. I keep receiving
Error: Could not find Chromium (rev. 1108766).
The cause of the error seems to be that that specific revision is no longer available at Google (HTTP status code 404):
npm error ERROR: Failed to set up Chromium r1108766! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
npm error Error: Download failed: server returned code 404. URL: https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1108766/chrome-linux.zip
If you hit this link from your browser https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1108766/chrome-linux.zip then you see that the file is there. Just tried it seconds ago.
If you hit this link from your browser https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1108766/chrome-linux.zip then you see that the file is there. Just tried it seconds ago.
Yes, you are right. I fell victim to an issue in Pupeteer when running behind a HTTP proxy (https://github.com/puppeteer/puppeteer/issues/10575).
One thing that may also help is running npm -g rebuild puppeteer
if you've installed @mermaid-js/mermaid-cli
with the -g
flag, or npm rebuild puppeteer
if you've installed it without the -g
flag.
That should tell puppeteer to redownload the chrome browser!
Describe the bug
Install with:
Get warning about puppeteer at install:
Create
input.mmd
as:Launch
Get
Same error as #650, but I don't have a "mermaid" software as described in the workaround that that OP used
To Reproduce
See above
Expected behavior
Should produce PNG file.
Desktop (please complete the following information):