I'm trying to get started with Mermaid CLI but when I try to run it against my source file it says it can't find phantomjs. (I'm running 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.
However phantomjs is in my path and I have no problems running it from the command prompt.
C:\Users\Chris\Documents>phantomjs
phantomjs>
I also tried putting the phantomjs path in directly. This didn't help.
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.
Curiously, if I ask for verbose feedback it also tells me it needs a source file
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.
So, I'm wondering if there is something wrong with my source. Which, I had just copied from the readme. The source file looks like:
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
C -->|One| D[Result one]
C -->|Two| E[Result two]
Any thoughts would be much appreciated.