Configuring pub environment variables
Environment variables allow you to customize pub to suit your needs.
PUB_CACHE
- Some of pub’s dependencies are downloaded to the pub cache. By default, this directory is located under
.pub-cache
in your home directory (on Mac and Linux), or in%APPDATA%\Pub\Cache
(on Windows). (The precise location of the cache may vary depending on the Windows version.) You can use thePUB_CACHE
environment variable to specify another location. For more information, see The system package cache. PUB_HOSTED_URL
- Pub downloads dependencies from the Pub site. To specify the location of a particular mirror server, use the
PUB_HOSTED_URL
environment variable. For example:
1 |
<span class="pln">PUB_HOSTED_URL </span><span class="pun">=</span><span class="pln"> http</span><span class="pun">://</span><span class="pln">user</span><span class="pun">:</span><span class="pln">password@177</span><span class="pun">.</span><span class="lit">0.0</span><span class="pun">.</span><span class="lit">1</span><span class="pun">:</span><span class="lit">9999</span> |