-
Notifications
You must be signed in to change notification settings - Fork 484
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
Bug: /usr/bin/env: ‘node\r’: No such file or directory
#394
Comments
This problem is related: yarnpkg/yarn#8106 |
Strangely, the file on GitHub appears to use LF endings, but the one that appears in So, another workaround is to list the latest version from GitHub as a dependency: "devDependencies": {
"live-server": "git+https://github.com/tapio/live-server.git#ad22544",
} |
|
Happen to me as well, the issue doesn't happen with previous version |
@tapio could you please re-publish the latest version without changing the line endings? I was bitten by this again when installing on a new machine. |
For
|
for npm package manager:
|
1.2.1 is fine, 1.2.2 is broken
|
It seems that
I guess this package is published from local machine instead of CI? That's not good... |
Should this be merged? |
Just ran into this as well. Pinning to |
Running into this... was in 1.2.2, also in 1.2.1, but only when using the --port option...? on a linux machine. doesn't seem to be a problem for coworker on his windows machine. |
live-server 1.2.2 has incorrect line endings, so it breaks Mac and Linux systems. See tapio/live-server#394 for details
live-server 1.2.2 has incorrect line endings, so it breaks Mac and Linux systems. See tapio/live-server#394 for details
live-server 1.2.2 has incorrect line endings, so it breaks Mac and Linux systems. See tapio/live-server#394 for details
The file
/home/chris/.config/yarn/global/node_modules/live-server/live-server.js
seems to be using Windows line endings (\r\n
).Running
dos2unix
on this file fixes the issue.I installed live-server with
yarn global add live-server
and yarn version1.22.17
.Software details
live-server
:live-server
Gentoo Base System release 2.7
v14.19.0
live-server
version:1.2.2
This might be a problem with yarn on Gentoo.
Thanks for your help!
The text was updated successfully, but these errors were encountered: