Closed Sulquendi closed 2 years ago
- npm install mermaid # needs to be installed or not ?
Mermaid doesn't need to be installed, it's included as part of @mermaid-js/mermaid-cli
.
mmdc -i README.md -o README-MER.md
Try using the npx command instead:
npx --package=@mermaid-js/mermaid-cli mmdc -i README.md -o README-MER.md
npm install @mermaid-js/mermaid-cli
usually installs mmdc
into node_modules/.bin/mmdc
, which probably isn't in your PATH
environment variable.
Thank you, the npx command line did the job !
@Sulquendi as it says in mermaid-cli readme, the path to access mermaid-cli after installing locally is ./node_modules/.bin/mmdc -h
I am using mermaid-cli in a gitlab CI pipeline,
so far my .gitlab.yaml file looks like this :
This ends up with the following error :
/scripts-225629-47038994/step_script: line 163: mmdc: command not found