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

env: node\r: No such file or directory #2

Closed
Badisi opened this issue Aug 24, 2020 · 3 comments
Closed

env: node\r: No such file or directory #2

Badisi opened this issue Aug 24, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@Badisi
Copy link

Badisi commented Aug 24, 2020

Issue

I've been trying your package on macOS and got the following issue:

> yarn global add ios-uploader
> ios-uploader
> env: node\r: No such file or directory

It relates to the file /bin/cli.js that is using CRLF line endings.
=> CRLF are a Windows thing whereas Unix/macOS are using LF.

npm seems to auto fix it depending on the OS : npm/npm#12371
yarn (which I'm using..) doesn't : yarnpkg/yarn#5480

Possible workaround

Configuring your git : configuring-git-to-handle-line-endings.
And also making /bin/cli.js a real executable (by convention it should be /bin/cli, without file extension)

@simonnilsson
Copy link
Owner

Hi @Badisi, thank you for reporting the issue and suggested fixes.

I will fix the line endings asap. I do however prefer to keep the .js extension for cli.js to allow it to be properly identified by editors and so on, I don't think it should cause a problem.

@simonnilsson
Copy link
Owner

Line endings fixed. Tested and working with yarn now.

@Badisi
Copy link
Author

Badisi commented Aug 25, 2020

Hi @simonnilsson, thanks for your responsiveness and for the fix !

I also have one or two improvements I would like to suggest if you don't mind.
I will create them later today.
Thanks again :-)

@simonnilsson simonnilsson added the bug Something isn't working label Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants