Skip to content

yarn run is silent on Git Bash (Windows) #1096

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

Closed
mikerockett opened this issue Oct 15, 2016 · 8 comments
Closed

yarn run is silent on Git Bash (Windows) #1096

mikerockett opened this issue Oct 15, 2016 · 8 comments

Comments

@mikerockett
Copy link

mikerockett commented Oct 15, 2016

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

Bug: Running yarn run <something> does not show output when using Git Bash on Windows.

What is the current behavior?

Currently, running yarn run build outputs Yarn's version and the command npm-watch (in my case). If an error occurs during the watch process, there is no way to identify it.

yarn-bug-1

What is the desired behavior?

The output should be shown like it is when running the same command via the Windows Command Prompt.

Please mention your node.js, yarn and operating system version.

Node 4.2.6; Yarn 0.15.1; Git 2.9.2 64-bit; Windows 10

@mikerockett mikerockett changed the title yarn run --verbose yarn run is silent on Git Bash (Windows) Oct 15, 2016
@Daniel15
Copy link
Member

Hi @mikerockett! Is it possible to provide a package.json that replicates the issue? Thanks!

@mikerockett
Copy link
Author

mikerockett commented Oct 16, 2016

@Daniel15 - Sure:

{
  "name": "epanel-assets",
  "version": "0.0.4",
  "description": "ePanel Asset Container/Builder",
  "author": "Mike Rockett",
  "license": "MIT",
  "devDependencies": {
    "node-sass": "^3.10.1",
    "npm-watch": "^0.1.6"
  },
  "scripts": {
    "sass": "node-sass --source-map true --include-path src/scss --output-style compressed src/scss/epanel.scss build/css/epanel.css",
    "build": "npm-watch"
  },
  "watch": {
    "sass": {
      "patterns": [
        "src/scss"
      ],
      "extensions": "scss"
    }
  }
}

Thanks 👍

@mikerockett
Copy link
Author

mikerockett commented Oct 19, 2016

@Daniel15 - have you been able to replicate my issue?

@frenic
Copy link

frenic commented Oct 22, 2016

Are you sure it's silent? It sure behaves weird, but in my case run scripts is really slow with Git Bash. And it get slower and slower until it freezes if I trigger run scripts inside run scripts. Like "start": "yarn run clean && yarn run dev-server. Works like a charm with Windows Command though.

@mikerockett
Copy link
Author

@faddee - It defintely works, there is just no console output. I'm not experiencing any lagging here - the process runs smoothly. Although, it does sometimes take a while to start, but that's only on first run after bootup.

@jasmouth
Copy link

Is this possibly due to the same issue mentioned in #743? I've come across the same problem (Node 7.4.0; Yarn 0.18.1; Windows 7). In my case, I have two scripts that look something like "test": "jest" and "build": "webpack" defined in my package.json. Both scripts run fine when using yarn run from CMD, but only the build script works correctly when using yarn run from Git Bash (I should also point out that the test script fails to complete when using yarn test in Git Bash as well).

@ArtistsTechGuy
Copy link

ArtistsTechGuy commented Jan 20, 2017

I fixed this by updating my git for windows to the latest version, it looks to be a problem with winpty.exe I also updated to the latest nightly version of yarn v0.20.0 as there was a patch concerning this applied in version 0.19.

node.js - v6.9.4 | yarn - v0.20.0-20170117.1018 | git for windows - 2.11.0.3 with MinGW teminal

@bestander
Copy link
Member

Looks like this is a configuration issue

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

No branches or pull requests

6 participants