8000 bin/stylus in npm packages contains windows style line endings · Issue #2691 · stylus/stylus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
bin/stylus in npm packages contains windows style line endings #2691
Closed
@michael-mader

Description

@michael-mader

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0