-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Support npm_config_cache environment variable #1632
Comments
Is this documented anywhere in npm's documentation, or is it another undocumented npm environment thing like #1587? |
npm makes all config available in the script environment with a |
This behaviour is documented under npm scripts.
|
Thanks for the info! 😄 |
Something also to note; Any config variable set as https://docs.npmjs.com/misc/config#per-package-config-settings |
We can't switch to yarn without this, and none of the |
I'm getting this issue as well |
3 full years, and no fix? |
Getting the same issue. I was trying to use |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
yarn run v0.16.1 $ node -p process.env.npm_config_cache undefined ✨ Done in 0.28s.
If the current behavior is a bug, please provide the steps to reproduce.
Print
process.env.npm_config_cache
in an npm scriptWhat is the expected behavior?
Please mention your node.js, yarn and operating system version.
OS X El Capitan
The text was updated successfully, but these errors were encountered: