Skip to content
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

How to change default global path in .yarnrc ? Like cache-folder #5078

Closed
vikyd opened this issue Dec 12, 2017 · 3 comments
Closed

How to change default global path in .yarnrc ? Like cache-folder #5078

vikyd opened this issue Dec 12, 2017 · 3 comments

Comments

@vikyd
Copy link

vikyd commented Dec 12, 2017

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

What is the current behavior?
How to change default global path in .yarnrc ? Like cache-folder

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

What is the expected behavior?

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

@ghost ghost assigned bestander Dec 12, 2017
@ghost ghost added the triaged label Dec 12, 2017
@bestander
Copy link
Member

Global folders are a bit messy because Yarn supports Mac, Linux and Windows and tries to play by the rules of all of them.
See her https://github.com/yarnpkg/yarn/blob/master/src/constants.js#L77 -> https://github.com/yarnpkg/yarn/blob/master/src/util/user-home-dir.js#L7

Looks like it is defined as OS home dir and does not get an override.
A PR to provide a .yarnrc option to fix it is welcome

@bestander
Copy link
Member

This issues can be fixed by fixing this #2334.
Let's merge it there

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

No branches or pull requests

2 participants