Skip to content

Fix typo in PATH added by Windows installer #2631

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
wants to merge 1 commit into from

Conversation

neojp
Copy link

@neojp neojp commented Feb 4, 2017

Summary

Global packages are currently not accessible through the command line because the PATH has been wrongly set through the Windows Installer c091ac4 & #1129

This gives the impression that global packages don't work on Windows at all and has been brought up in issue #2192 (comment)

Test plan

This has been tested to work on the original PR #1129. This should just fix a typo in the PATH.

* Change PATH from `%LocalAppData%\Yarn\.bin` to `%LocalAppData%\Yarn\config\global\node_modules\.bin` in the Windows installer
* Fixes the Windows PATH introduced in c091ac4 & yarnpkg#1129
* Allows global packages to be accessible through Windows PowerShell and CMD
Copy link
Member

@Daniel15 Daniel15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the path in the installer is correct, and Yarn is actually using the wrong path. Globally installed modules shouldn't be going into a "config" directory 😛

Could you please update it to add both* paths? I think you'd need two separate <Environment /> elements to do that.

@gaearon
Copy link
Contributor

gaearon commented Feb 21, 2017

@neojp Are you interested in addressing the review comments? The issue still affects users so it would be great to get this fixed!

@Daniel15
Copy link
Member

This was fixed by #3233

@Daniel15 Daniel15 closed this May 12, 2017
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

Successfully merging this pull request may close these issues.

3 participants