Skip to content

Unable to run global binaries on Windows #2218

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 Dec 10, 2016 · 2 comments
Closed

Unable to run global binaries on Windows #2218

mikerockett opened this issue Dec 10, 2016 · 2 comments

Comments

@mikerockett
Copy link

mikerockett commented Dec 10, 2016

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

This is a bug relating to Yarn Global.

What is the current behavior?

On Windows, attempting to install Brunch or Bower via yarn global works, but the resulting binaries are not found. Error received for brunch:

"$basedir/../../Users/User/AppData/Local/Yarn/config/global/node_modules/.bin/brunch.cmd"   "$@"
The system cannot find the path specified.

However, I can confirm that C:\Users\User\AppData\Local\Yarn\config\global\node_modules\.bin\brunch.cmd exists.

If the current behavior is a bug, please provide the steps to reproduce.

  1. yarn global add brunch
  2. brunch

Same applies to bower, which leads me to think this is a path issue on Windows.

What is the expected behavior?

Biary should execute as expected.

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

  • Node 7.2.1; Yarn 0.18.0 - both installed via Chocolatey.
  • Running Windows 10.
@mikerockett
Copy link
Author

Apologies - I did not see this related comment.

Removing the .cmd and renaming the .cmd.cmd does indeed solve the problem.

@mikerockett
Copy link
Author

Closing with reference to #1324.

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

No branches or pull requests

1 participant