X Tutup
Skip to content

Commit 391a6fb

Browse files
committed
docs(developer.md): add PUB_CACHE variable to setup instructions
If PUB_CACHE is not set the pub dependencies are downloaded to a default folder during the build because `gulp build` also runs `pub get`. Running the tests locally PUB_CACHE is set to a subdirectory of the SDK when the `env_dart.sh` script is sourced. Therefore `build/pubbuild.dart` fails as it can't find the dependencies. Closes angular#4900
1 parent 3416984 commit 391a6fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

DEVELOPER.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ export DART_SDK="$DART_EDITOR_DIR/dart-sdk"
9595
PATH+=":$DART_SDK/bin"
9696
```
9797

98+
And specify where the pub’s dependencies are downloaded. By default, this directory is located under .pub_cache
99+
in your home directory (on Mac and Linux), or in AppData\Roaming\Pub\Cache (on Windows).
100+
101+
```shell
102+
# PUB_CACHE: location of pub dependencies
103+
export PUB_CACHE="/Users/<user>/.pub-cache"
104+
```
105+
98106
## Installing NPM Modules and Dart Packages
99107

100108
Next, install the JavaScript modules and Dart packages needed to build and test Angular:

0 commit comments

Comments
 (0)
X Tutup