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: events.js:167 - throw er; // Unhandled 'error' event #44

Open
ghost opened this issue Jan 25, 2019 · 0 comments
Open

Error: events.js:167 - throw er; // Unhandled 'error' event #44

ghost opened this issue Jan 25, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 25, 2019

Got the following error while trying to run tsviz despite GraphViz installation and configuration:

events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: spawn /usr/local/bin/dot ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:230:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at startup (internal/bootstrap/node.js:266:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:236:12)
    at onErrorNT (internal/child_process.js:407:16)
    [... lines matching original stack trace ...]
    at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)

Though it sounds similar to #43, the cause of error is different as seen in the following line Error: spawn /usr/local/bin/dot ENOENT. The error is thrown since tsviz couldn't find /usr/local/bin/dot. It was because GraphViz was installed globally in my machine and the location of dot was /usr/bin/dot. To solve it, create a symbolic link in the expected location: sudo ln -s /usr/bin/dot /usr/local/bin/dot.

Though it's the same issue as #5, I'd let it stay here since it includes the symbolic link workaround and the complete error.

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

0 participants