question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run CLI due to invalid line endings on Linux

See original GitHub issue

After 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jfhbrookcommented, Feb 10, 2019

Great! Unfortunate that npm publish on windows is busted 🙄 but glad to fix!

1reaction
klacommented, Feb 10, 2019

Works!

$ node_modules/.bin/ecstatic 
ecstatic serving /tmp/test at http://0.0.0.0:8000
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found