1

我正在尝试使用美人鱼工具来构建图表。我安装在windows上使用,

yarn add mermaid

在第一次下载勺子和纱线之后。

然后,要获得我使用的命令行界面,

yarn add mermaid.cli

./node_modules/.bin/mmdc -h

https://github.com/mermaidjs/mermaid.cli

当我实际尝试运行命令行选项时,特别是生成图表时,我收到此错误,

mmdc : The term 'mmdc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:1
+ mmdc -i example2.mmd -o exampleout.png
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (mmdc:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

因为我使用的是工作计算机,所以我在我的用户/姓氏文件中安装了 scoop、yarn、mermaid 和界面,所以这可能是问题所在。

4

0 回答 0