When Compiling a .mmd file on windows, I get the following error:
[WinError 2] The system cannot find the file specified
[cmd: ['mmdc', '-i', 'optic_design.mmd', '-o', 'optic_design.png', '-b', 'transparent', '--width', '2048', '--height', '2048', '--scale', '2']]
[dir: C:\resources\dissertation\Optic Design]
[path: C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\ProgramData\Anaconda3\python.exe;C:\Program Files\Git\cmd;C:\Program Files\gnuplot\bin;C:\Program Files\nodejs\;C:\Users\l.gross\AppData\Local\Microsoft\WindowsApps;C:\Users\l.gross\AppData\Local\Programs\MiKTeX\miktex\bin\x64\;C:\Users\l.gross\AppData\Local\SumatraPDF\;C:\Users\l.gross\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-7.1-full_build\bin;C:\Users\l.gross\AppData\Roaming\npm;C:\Users\l.gross\AppData\Roaming\npm\mmdc;]
[Finished]
mmdc is in path.
running the same command from CMD with absolute paths instead, everything works fine:
C:\Users\l.gross>mmdc -i "C:\resources\dissertation\Optic Design\optic_design.mmd" -o "C:\resources\dissertation\Optic Design\optic_design.png" -b transparent --width 2048 --height 2048 --scale 2
Generating single mermaid chart
Do I miss a toggle or something to set the dir correctly?
When Compiling a
.mmdfile on windows, I get the following error:mmdc is in path.
running the same command from CMD with absolute paths instead, everything works fine:
Do I miss a toggle or something to set the dir correctly?