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

bin/stylus in npm packages contains windows style line endings #2691

Closed
michael-mader opened this issue May 31, 2022 · 1 comment · Fixed by #2692
Closed

bin/stylus in npm packages contains windows style line endings #2691

michael-mader opened this issue May 31, 2022 · 1 comment · Fixed by #2692

Comments

@michael-mader
Copy link

To reproduce:

On Linux or Mac OS:

yarn add stylus@0.58.0
yarn run stylus                                                                                                                       
> yarn run v1.22.19
> warning package.json: No license field
> $ /Users/myuser/tmp/node_modules/.bin/stylus
> env: node\r: No such file or directory
> error Command failed with exit code 127.
> info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Current behavior:

In version 0.58.0 bin/stylus contains windows style line endings (CRLF \r\n) which causes the stylus command to fail on mac or linux. I've read somewhere else that npm automatically converts those wrong line endings wheres yarn does not.

In version 0.57.0 the line endings are only single LF (\n) and everything is working as expected.

Expected behavior:

bin/stylus can be run on Linux via yarn run stylus

Environment information:

  • stylus version: 0.58.0
  • nodejs version: 14.17.6 (but that does not matter)
@iChenLei
Copy link
Member

iChenLei commented May 31, 2022

Thanks for your report, I will release a patch version to fix it (0.58.1). And add test for regression.

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

Successfully merging a pull request may close this issue.

2 participants