3

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.

だから、私のソースに何か問題があるのだろうかと思っています。これは、readme からコピーしたところです。ソース ファイルは次のようになります。

A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
C -->|One| D[Result one]
C -->|Two| E[Result two]

どんな考えでも大歓迎です。

4

3 に答える 3