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
Windows & Git Bash: yarn run
fails due to missing slashes
#7732
Comments
I have the same issue. |
My solution, add script to package.json
then |
i have the same issue (cmd, gitbash, bash), did anyone find the solution? |
I simply reinstalled the system and it worked. But that's probably not the solution you're looking for. It happened for me at least twice and I suspect the issue is somewhere inside |
thanks you, I think not is related with git bash, because I have the same issue in cmd and powershell, I try repair yarn and not works :( Addin like script in package.json, but I'm curious about the error. Thank you for your help! |
Ey, youre right. The problem was with gitbash. |
I've been debugging this for a bit, here's what I learned: ScenarioLet's follow the original scenario:
What happens when we run
|
Thanks, that worked for me! |
Do you want to request a feature or report a bug?
A bug
What is the current behavior?
Under Windows, when using Git Bash as the script-shell, attempts to run executables from
node_modules/.bin
using theyarn <executable>
syntax fail due to path corruption.If the current behavior is a bug, please provide the steps to reproduce.
yarn
node_modules/.bin
withyarn eslint
What is the expected behavior?
Path is translated successfully and
yarn eslint
is run.Please mention your node.js, yarn and operating system version.
NodeJs: 12.13.1
Yarn: 1.21.0
Operating system: Microsoft Windows [Version 10.0.18363.476]
The text was updated successfully, but these errors were encountered: