Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump mermaid-cli to 11 #136

Open
arbipher opened this issue Nov 12, 2024 · 1 comment
Open

Bump mermaid-cli to 11 #136

arbipher opened this issue Nov 12, 2024 · 1 comment

Comments

@arbipher
Copy link

mermaid-cli at 10.9.1 conflicts with recent Mac arm architecture. The error is here. The Error: spawn Unknown system error -86 is said to be an architecture problem.

$ /opt/homebrew/lib/node_modules/mermaid-filter/node_modules/.bin/mmdc -w 800 -s 1 -f -i "/var/folders/s1/4f0tf3s97cn_dkx2ckzl69wc0000gn/T/tmp-7007Z5FBDkgo5qz8.tmp" -t default -b white -o "/var/folders/s1/4f0tf3s97cn_dkx2ckzl69wc0000gn/T/tmp-7007Z5FBDkgo5qz8.tmp.png"

Error: spawn Unknown system error -86
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at Object.spawn (node:child_process:753:9)
    at new Process (file:///opt/homebrew/lib/node_modules/mermaid-filter/node_modules/@puppeteer/browsers/lib/esm/launch.js:134:76)
    at launch (file:///opt/homebrew/lib/node_modules/mermaid-filter/node_modules/@puppeteer/browsers/lib/esm/launch.js:72:12)
    at ChromeLauncher.launch (file:///opt/homebrew/lib/node_modules/mermaid-filter/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:64:32)
    at async run (file:///opt/homebrew/lib/node_modules/mermaid-filter/node_modules/@mermaid-js/mermaid-cli/src/index.js:416:19)
    at async cli (file:///opt/homebrew/lib/node_modules/mermaid-filter/node_modules/@mermaid-js/mermaid-cli/src/index.js:192:3)

I can run the same command by replacing a recent mermaid-cli

$ mmdc -w 800 -s 1 -f -i "/var/folders/s1/4f0tf3s97cn_dkx2ckzl69wc0000gn/T/tmp-7007Z5FBDkgo5qz8.tmp" -t default -b white -o "/var/folders/s1/4f0tf3s97cn_dkx2ckzl69wc0000gn/T/tmp-7007Z5FBDkgo5qz8.tmp.png"
Generating single mermaid chart

$ mmdc --version
11.4.0
@autra
Copy link

autra commented Feb 25, 2025

It has been done on master 🥳

Now we just need a release with that v11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants