Skip to content

After upgrading yarn on Windows, bash scripts won't run without hitting Enter #3540

Description

@kaiyoma

I upgraded from 0.23.3 to 0.24.6 today on my Windows 10 laptop and I'm seeing a problem whenever I run a bash script through yarn. I have several tasks defined in my package.json that look like this:

    ...
    "lesshint": "bash scripts/lesshint.sh",
    "lint": "bash scripts/lint.sh",
    ...

Now when I execute yarn run lint, the system hangs at this point:

$ yarn run lint
yarn run v0.24.6
$ bash scripts/lint.sh

Normally this script finishes in a few moments, but I noticed after the upgrade today that it was stuck after a minute. I checked Task Manager and nothing was happening. In the shell, I hit Enter and suddenly Node.js came to life in Task Manager and the script finished within a few moments.

This problem isn't happening with all of my shell script tasks, but it's happening with the most important ones.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions