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 when running in node #19

Open
havascolino opened this issue Aug 22, 2016 · 5 comments
Open

Error when running in node #19

havascolino opened this issue Aug 22, 2016 · 5 comments

Comments

@havascolino
Copy link

I installed graphviz 2.38 and added to path get this error message

D:\tsviz>tsviz app.component.ts v.png
events.js:160
throw er; // Unhandled 'error' event
^

Error: write EPIPE
at exports._errnoException (util.js:953:11)
at Socket._writeGeneric (net.js:705:26)
at Socket._write (net.js:724:8)
at doWrite (_stream_writable.js:307:12)
at writeOrBuffer (_stream_writable.js:293:5)
at Socket.Writable.write (_stream_writable.js:220:11)
at Socket.write (net.js:650:40)
at Graph.render (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tsv
iz\node_modules\graphviz\lib\deps\graph.js:380:18)
at Graph.output (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tsv
iz\node_modules\graphviz\lib\deps\graph.js:385:8)
at Object.buildUml (C:\Users\Administrator\AppData\Roaming\npm\node_modules
tsviz\bin\uml-builder.js:30:7)

D:\tsviz>

@joaompneves
Copy link
Owner

Check if graphviz folder is set on your PATH variable. If not, you should add folder of gvpr.exe (usually %Graphviz_folder%/bin) to the PATH variable.

@havascolino
Copy link
Author

Dear Joao,Thank you for your help . After adding the bin to the path I get a done message in most cases but no one is created the only image created when my dir path points to the examples dir in your node module. I am trying to model angular 2 projects some times I get a can not read property forEa CV h of undefined. I never get a PNG. I guess this has some thing to do with dependency scrolling.
Ariel

Sent from Yahoo Mail on Android

On יום ד׳, אוג׳ 24, 2016 at 19:41, João [email protected] wrote:
Check if graphviz folder is set on your PATH variable. If not, you should add folder of gvpr.exe (usually %Graphviz_folder%/bin) to the PATH variable.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@havascolino
Copy link
Author

Dear Joao,
Here is the error message
D:\tsviz>tsviz app\  app.png
'app' does not exist
C:\Users\Administrator\AppData\Roaming\npm\node_modules\tsviz\bin\uml-builder.js
:18
    modules.forEach(function (module) {
           ^

TypeError: Cannot read property 'forEach' of undefined
    at Object.buildUml (C:\Users\Administrator\AppData\Roaming\npm\node_modules
tsviz\bin\uml-builder.js:18:12)
    at Object.createGraph (C:\Users\Administrator\AppData\Roaming\npm\node_modul
es\tsviz\bin\tsviz.js:36:16)
    at main (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tsviz\bin\t
sviz-app.js:16:11)
    at Object.run (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tsviz
\bin\tsviz-app.js:20:5)
    at Object. (C:\Users\Administrator\AppData\Roaming\npm\node_modul
es\tsviz\bin\tsviz-main.js:4:5)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)

D:\tsviz>tsviz D:\angular2-tour-of-heroes\app\  tour_of_heros.png
done

D:\tsviz>

 Ariel Wassertheil

On Wednesday, August 24, 2016 7:41 PM, João Neves <[email protected]> wrote:

Check if graphviz folder is set on your PATH variable. If not, you should add folder of gvpr.exe (usually %Graphviz_folder%/bin) to the PATH variable.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@joaompneves
Copy link
Owner

Can you try with the latest tsviz version? I tried running against that example (from here: https://github.com/johnpapa/angular2-tour-of-heroes) and it generates the diagram.

@Exclaminator
Copy link

When I got this error it seemed that my installation path of Graphviz was wrong, fixed it with
ln -s /usr/bin/dot /usr/local/bin/dot

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

3 participants