Skip to content

yarn run doesn't work in Git Bash due to strange path modification #5717

@borekb

Description

@borekb

Yarn 1.6.0, Git Bash on Windows and this package.json:

{
  "name": "test",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "start": "MSYS_NO_PATHCONV=1 docker run --rm -it -p 8000:8000 -v `pwd`:/docs squidfunk/mkdocs-material:2.6.3"
  }
}

npm start works fine, yarn start displays this error:

$ yarn start
yarn run v1.6.0
$ MSYS_NO_PATHCONV=1 docker run --rm -it -p 8000:8000 -v `pwd`:/docs squidfunk/mkdocs-material:2.6.3
/c/Program Files/git/usr/bin/bash: Files\git\bin\bash.exe: No such file or directory
?[2K?[1G?[31merror?[39m Command failed with exit code 127.
?[2K?[1G?[94minfo?[39m Visit ?[1mhttps://yarnpkg.com/en/docs/cli/run?[22m for documentation about this command.

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions