-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
yarn run
doesn't work in Git Bash due to strange path modification
#5717
Comments
Same problem with ubuntu after upgrading to 1.6.x |
The only workaround I found was downgrading to 1.5.1, Yarn was unusable with this bug, unfortunately. |
Same problem here. .yarnrc:
Terminal:
Tried escaping the space ( Node 9.4.0, Windows 10 Pro |
Also fails using:
With:
Downgrading to 1.5.1... |
Just to confirm, the issue is still present in 1.7.0. |
Also confirming @KatieMFritz's issue. After downgrading to yarn 1.5.1 from 1.7.0, the whitespace issue is resolved |
FYI, I now run Yarn in Git Bash (actually MSYS2 shell with zsh) via an alias like this:
I believe this is the correct way to run Yarn in Git Bash anyway so this resolves the issue for me. Unfortunately, Git Bash still cannot be used as a |
If you need to be on the latest version of Yarn and run it from Git Bash & use Git Bash as the
Hopefully Yarn will be fully compatible with Git Bash soon again. |
Has anyone tried this with Yarn 1.9.2? |
I just tried with v1.9.4 still doesn't work |
A quick update: 1. winpty issueFor the first issue with
I then install Yarn with 2. script-shell issueThe other issue is with Bash / zsh being
The main issue for this is #6086 and an upstream fix in Node.js has actually been merged a couple of weeks ago: nodejs/node#21943. However, this will be released only in Node 11.0.0 which is scheduled to be out in about a month. For this issue, the only current solution is to stay at |
Can someone try on Node 11 on Windows? nodejs/node#21943 has supposedly shipped in that version so I'm wondering if the issue is resolved (am not on Windows these days). |
I just upgraded to Node 11.1.0 and executed |
Thanks @patricksevat. Upgrading only to Node 11.11.0 worked for me. |
Bottom line, node 11 and latest gitbash work fine. If you use <11, it hangs threads, and generally doesn't work. |
Just to add some extra info to anyone struggling with this and cannot downgrade yarn versions. You can switch to using cmd.exe as your shell and it should work. I needed to clear these values for it to work
And set this config either by running this command or .npmrc
|
Seconding the
I don't know why but it worked for me. Previously I would get errors like this for running even a very simple task like
Also it would work with |
Yarn 1.6.0, Git Bash on Windows and this
package.json
:npm start
works fine,yarn start
displays this error:Node v8.10.0, I'm on Windows 10 Pro.
I think this is a regression and was working fine in Yarn 1.5.x.
The text was updated successfully, but these errors were encountered: