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

Binary throws /usr/bin/env: 'node\r': No such file or directory #6

Open
emahuni opened this issue Oct 23, 2021 · 0 comments
Open

Binary throws /usr/bin/env: 'node\r': No such file or directory #6

emahuni opened this issue Oct 23, 2021 · 0 comments

Comments

@emahuni
Copy link

emahuni commented Oct 23, 2021

This is caused by line endings that don't work on other platforms. I assume you are using Windows and this is the problem it is causing:

on Linux:
image

and on Mac:
image

Just forking it to my account and using it from there, ie: yarn add -D https://github.com/emahuni/symlinked fixed the problem because Github removed DOS line endings \r\n. However, the correct solution would be to let the destination decide the line endings to use and by stripping DOS line endings, then publish the package with a new version in npm.

see https://stackoverflow.com/a/67870789/1673161 and https://stackoverflow.com/a/58558771/1673161 for solution.

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

1 participant