Replies: 1 comment
-
|
P.S. I should've thought of this before but this simple test case suggests that it does work... If I delete a package from it seems to be refusing to go to the internet as I was hoping: 🎉 and build fails. Whereas without setting that env var, it just fetches the missing package and build succeeds. So I guess the answer is "yes" and it's just a bit strange that there were absolutely zero search results for it on the internet. This discussion may remedy that in this case, though it might be helpful if https://yarnpkg.com/configuration/yarnrc included more of the resultant env var names for settings which might frequently be used in a temporary basis - e.g. most people wouldn't want |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
At the top of https://yarnpkg.com/configuration/yarnrc it says:
so
enableNetworkshould becomeYARN_ENABLE_NETWORK.However searching for this in quotes produces no results whatsoever (though I guess this post might show up eventually...!)
My question therefore is whether
YARN_ENABLE_NETWORKis a valid environment variable which can be used to disable network access? e.g. by doing something likeYARN_ENABLE_NETWORK=0 yarn installBeta Was this translation helpful? Give feedback.
All reactions