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

/usr/bin/env: ‘node\r’: No such file or directory #93

Open
utkarshmani1997 opened this issue Sep 30, 2019 · 4 comments · May be fixed by #95

Comments

@utkarshmani1997
Copy link

commented Sep 30, 2019

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 directory
What is the expected behavior? It should run normally and start ui.
Logs

@Pliavi

This comment has been minimized.

Copy link

commented Sep 30, 2019

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
@utkarshmani1997

This comment has been minimized.

Copy link
Author

commented Sep 30, 2019

@Pliavi i have tried to install in both way but problem remains.

@Zephyr0402

This comment has been minimized.

Copy link

commented Sep 30, 2019

same issue here

@Pliavi

This comment has been minimized.

Copy link

commented Oct 1, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.