/usr/bin/env: ‘node\r’: No such file or directory
utkarshmani1997 opened this issue · comments
System Information
Name | Value |
---|---|
OS | Linux |
Node Version | v12.11.0 |
Project Version | 5717f17 |
What is the current behavior?
While running `gitfolio ui` it returns /usr/bin/env: ‘node\r’: No such file or directoryWhat is the expected behavior?
It should run normally and start ui.Logs
I'm having the same problem, for me, this error appears when i install Gitfolio with Yarn, but works when it is from NPM (as it needs sudo).
Name | Value |
---|---|
OS | Linux |
Node Version | v12.9.1 |
@Pliavi i have tried to install in both way but problem remains.
same issue here
I found the problem, all linebreaks are CRLF and the shell are interpreting the "carriage return"(\r
) as part of the node name, it's happening because the project are using CRLF Unix systems can't recognize it well (so the problem my happen in MacOS too).
It would be fixed by using only LF, and setting in git to upload as it and not convert it back do CRLF, but I don't know if it will lead to windows problems... 😕
Another project that had the same problem: fastify/fastify#1293 , looks like there will be no problem to convert, and will be good to set a .gitattribute file to handle it.
I tried change to LF and then it works, i'll make a PR
Still facing the same issue.
Name | Value |
---|---|
OS | Linux |
Node Version | v8.10.0 |
Still facing the same issue.
Name Value
OS Linux
Node Version v8.10.0
Resolved after updating node.