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

Proposal for adding postinstall step that sets ENV variables #5806

Open
tunnckoCore opened this issue May 11, 2018 · 2 comments
Open

Proposal for adding postinstall step that sets ENV variables #5806

tunnckoCore opened this issue May 11, 2018 · 2 comments
Assignees
Labels

Comments

@tunnckoCore
Copy link

tunnckoCore commented May 11, 2018

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

Kind of both. Feature, but produces hard times for developers

What is the current behavior?
There is no env variables such as $YARN_GLOBAL_BIN and $YARN_GLOBAL_DIR.

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

What is the expected behavior?
To have, so it won't have problems like jonschlinkert/global-modules#8, where i'm concluding that the only way is to call the yarn cli to get these paths. The fix would be pretty easy - just set values of yarn global bin and yarn global dir as env variables in the postinstall step.

Please mention your node.js, yarn and operating system version.
No matter of the versions, but:

  • Node v10, same is for 6, 7, 8 and 9...
  • Yarn latest (1.60, installed through npm 6)
  • OS: ArchLinux.
@ghost ghost assigned torifat May 11, 2018
@ghost ghost added the triaged label May 11, 2018
@tunnckoCore tunnckoCore changed the title Proposal for setting ENV variables in postinstall step Proposal for adding postinstall step that sets ENV variables May 11, 2018
@tunnckoCore
Copy link
Author

tunnckoCore commented Jun 19, 2018

Friendly ping? 🏓

@tunnckoCore
Copy link
Author

Heya, some process? : )

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

No branches or pull requests

2 participants