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

"No such file or directory" trying to run mermaid 0.5.7 on OS X #284

Closed
hairyhenderson opened this issue Jan 26, 2016 · 3 comments
Closed

Comments

@hairyhenderson
Copy link

$ npm install -g mermaid
...
$ mermaid
env: node\r: No such file or directory

This is happening because the mermaid script is DOS-formatted (i.e. has \r\n/CRLF line-endings).

A simple fix to make sure this never happens again is to use a .gitattributes file like:

*.js text eol=lf

But the current version on npmjs.org (0.5.7) will still be broken.

A workaround could be to use dos2unix to fix the mermaid script.

@knsv
Copy link
Collaborator

knsv commented Jan 26, 2016

Thx
Will release a 0.5.8 then

@knsv
Copy link
Collaborator

knsv commented Feb 1, 2016

@hairyhenderson, I hope the 0.5.8 resoved your issue!

@hairyhenderson
Copy link
Author

@knsv - Thanks! 0.5.8 fixed it :)

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

2 participants