Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not find Graphviz in PATH. #24

Open
bennycode opened this issue Feb 6, 2017 · 3 comments
Open

Error: Could not find Graphviz in PATH. #24

bennycode opened this issue Feb 6, 2017 · 3 comments

Comments

@bennycode
Copy link

Hello, today I installed Graphviz v2.38 (using graphviz-2.38.msi) on Windows 10. Afterwards I tried to run tsviz src/ diagram.png but I only receive this error message:

Could not find Graphviz in PATH.
events.js:160
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at exports._errnoException (util.js:1022:11)
at Socket._writeGeneric (net.js:712:26)
at Socket._write (net.js:731:8)
at doWrite (_stream_writable.js:334:12)
at writeOrBuffer (_stream_writable.js:320:5)
at Socket.Writable.write (_stream_writable.js:247:11)
at Socket.write (net.js:658:40)
at Graph.render (C:\Users\Benny\AppData\Roaming\npm\node_modules\tsviz\node_modules\graphviz\lib\deps\graph.js:380:18)
at Graph.output (C:\Users\Benny\AppData\Roaming\npm\node_modules\tsviz\node_modules\graphviz\lib\deps\graph.js:385:8)
at Object.buildUml (C:\Users\Benny\AppData\Roaming\npm\node_modules\tsviz\bin\uml-builder.js:30:7)

So it looks like your tool cannot find Graphviz. Do I need to add a specific .exe to my system variables?

@khanrezwan
Copy link

I am also facing this error on Ubuntu14.04LTS.
`events.js:160
throw er; // Unhandled 'error' event
^

Error: spawn /usr/local/bin/dot ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:420:7)
at startup (bootstrap_node.js:139:9)
at bootstrap_node.js:535:3
`

@fase
Copy link

fase commented Feb 17, 2017

Just had this issue on Windows and resolved it by adding C:\Program Files (x86)\Graphviz2.38\bin to my PATH environment variable. Worked fine after that.

@SjoCi
Copy link

SjoCi commented Feb 24, 2017

After inserting to PATH don't forget to Sign out and in for windows to reload the environment variables, it will save you a lot of rage and time. Just saying... no real experience... (17 minutes...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants