Unable to run CLI due to invalid line endings on Linux
See original GitHub issueAfter installing ecstatic with yarn global add ecstatic
, I’m unable to run the command. It dies with the following error message:
/usr/bin/env: ‘node\r’: No such file or directory
This seems to be an issue with the code using CRLF line-endings instead of just LF on Linux.
OS: Ubuntu 18.04 LTS 64bit Node version: 10.10.0 Yarn version: 1.12.1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Wrong line endings after installation · Issue #5480 · yarnpkg ...
After installing npm-scripts-info, all files of this package have CRLF line endings and it cause error: /usr/bin/env: «node\r»: No such file ...
Read more >Trying to fix line-endings with git filter-branch, but having no luck
The easiest way to fix this is to make one commit that fixes all the line endings. Assuming that you don't have any...
Read more >Fixing misaligned Linux and Windows line endings
Specifically, I am running Microsoft SQL Server in a container in a Kubernetes cluster—okay, it's Red Hat OpenShift, but it's still Kubernetes.
Read more >How to change Windows line-ending to Unix version
Is there a way to change all line endings in a script from terminal. The thing is that I can not install any...
Read more >Error caused by incompatible line endings - Codacy docs
Codacy executes the git diff command when analyzing new commits and pull requests to identify the lines of code that were changed.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great! Unfortunate that npm publish on windows is busted 🙄 but glad to fix!
Works!