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

Windows Line Ending causes error #7173

Open
highmountaintea opened this issue Apr 4, 2019 · 3 comments
Open

Windows Line Ending causes error #7173

highmountaintea opened this issue Apr 4, 2019 · 3 comments

Comments

@highmountaintea
Copy link

Do you want to request a feature or report a bug?

bug

What is the current behavior?
global script installed by yarn does not work in Linux if the script uses \r\n line ending

If the current behavior is a bug, please provide the steps to reproduce.

yarn global add [email protected]
create-mithril-app testapp123
> /usr/bin/env: 'node\r': No such file or directory

What is the expected behavior?
global script should work regardless of the line ending. The rationale is that an npm package can only have one line ending, but needs to work across different environments (Linux, MacOS, Windows) that expect different line endings, which is impossible without yarn's help.

Please mention your node.js, yarn and operating system version.
node: 10.11.0
yarn: 1.15.2
OS: Ubuntu 18.04.1

@Daniel15
Copy link
Member

Does the same script work with npm?

@highmountaintea
Copy link
Author

yes, it works fine on npm

@joshmossas
Copy link

Bumping this issue.

I've also run into the same problem as well: modiimedia/contentful-hugo#7

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

3 participants