-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
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 the yarn <executable>
syntax fail due to path corruption.
If the current behavior is a bug, please provide the steps to reproduce.
- Clone the following repository: https://github.com/oturpe/yarn-run-bug
- Install dependencies with
yarn
- Try to run an executable installed in
node_modules/.bin
withyarn eslint
- Observe execution fails due to the path corruption like this:
PS C:\ws\Testit\NodeJs\yarn-run> yarn eslint
yarn run v1.21.0
$ C:\ws\Testit\NodeJs\yarn-run\node_modules\.bin\eslint
/usr/bin/bash: C:wsTestitNodeJsyarn-runnode_modules.bineslint: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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]
Josef37, ForgottenR, jgentes, flotwig, AtofStryker and 4 more
Metadata
Metadata
Assignees
Labels
No labels