Skip to content

Unable to use ares due to error: /usr/bin/env: ‘node\r’: No such file or directory #29

@langemike

Description

@langemike

We have configured a github runner using ubuntu-latest.

When we execute ares -V in our runner, we get the following error:

/usr/bin/env: ‘node\r’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines

When we remove the ares -V call the error disappears.

We believe it has something to do with https://github.com/webos-tools/cli/blob/main/bin/ares.js, even though the line breaks seem in order.

Does someone know what could be wrong here?

We tried to fix it by calling find $(yarn global bin) -type f -exec sed -i 's/\r$//' {} + first, but that didn't help.

This is a snippet from our .github/workflows/build-webos.yml file:

jobs:
  build_webos:
    name: Build WebOS App
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v4
        with:
          repository: "Something/something"
          ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}
          ref: ${{ inputs.reference }}
      - uses: actions/setup-node@v4
        with:
          node-version: "22"
      - name: Install WebOS CLI
        run: |
          yarn global add @webos-tools/cli@^3.2.1
          ares -V

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