Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

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

Closed
utkarshmani1997 opened this issue Sep 30, 2019 · 6 comments · Fixed by #95
Closed

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

utkarshmani1997 opened this issue Sep 30, 2019 · 6 comments · Fixed by #95
Labels
bug Something isn't working wait what use this when things doesn't make sense

Comments

@utkarshmani1997
Copy link

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
Copy link
Contributor

Pliavi 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
Copy link
Author

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

@Zephyr0402
Copy link

same issue here

@Pliavi
Copy link
Contributor

Pliavi 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

@imfunniee imfunniee added bug Something isn't working wait what use this when things doesn't make sense labels Oct 7, 2019
@coderjojo
Copy link

Still facing the same issue.

Name Value
OS Linux
Node Version v8.10.0

@coderjojo
Copy link

Still facing the same issue.
Name Value
OS Linux
Node Version v8.10.0

Resolved after updating node.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working wait what use this when things doesn't make sense
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants