我正在尝试开始使用 Mermaid CLI,但是当我尝试针对我的源文件运行它时,它说它找不到 phantomjs。(我正在运行 Win 7 64。)
C:\Users\Chris\Documents>mermaid test.mermaid
You had errors in your syntax. Use --help for further information.
Could not find phantomjs at the specified path.
但是 phantomjs 在我的路径中,我从命令提示符运行它没有问题。
C:\Users\Chris\Documents>phantomjs
phantomjs>
我还尝试将 phantomjs 路径直接放入。这没有帮助。
C:\Users\Chris\Documents>mermaid -e "C:\Users\Chris\AppData\Roaming\npm" test.mermaid
You had errors in your syntax. Use --help for further information.
Could not find phantomjs at the specified path.
奇怪的是,如果我要求详细的反馈,它也会告诉我它需要一个源文件
C:\Users\Chris\Documents>mermaid -v test.mermaid
You had errors in your syntax. Use --help for further information.
You must specify at least one source file.
Could not find phantomjs at the specified path.
所以,我想知道我的来源是否有问题。其中,我刚刚从自述文件中复制。源文件如下所示:
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
C -->|One| D[Result one]
C -->|Two| E[Result two]
任何想法将不胜感激。