OLD | NEW |
---|---|
1 --- | 1 --- |
2 layout: default | 2 layout: default |
3 title: "pub install" | 3 title: "pub install" |
4 description: "Reference documentation for the `pub install` command." | 4 description: "Reference documentation for the `pub install` command." |
5 has-permalinks: true | 5 has-permalinks: true |
6 --- | 6 --- |
7 | 7 |
8 # {{ page.title }} | 8 # {{ page.title }} |
9 | 9 |
10 <a href="index.html" style="text-align: right;"> | |
sethladd
2012/08/28 19:27:39
Have you considered using <aside class="note"> her
nweiz
2012/08/28 21:32:32
Done.
| |
11 <i class="icon-hand-right icon-white"> </i> | |
12 Get started with pub | |
13 </a> | |
14 | |
10 $ pub install | 15 $ pub install |
11 | 16 |
12 This command installs all the dependencies listed in the | 17 This command installs all the dependencies listed in the |
13 [`pubspec.yaml`](pubspec.html) file in the current working directory, as well as | 18 [`pubspec.yaml`](pubspec.html) file in the current working directory, as well as |
14 their [transitive dependencies](glossary.html#transitive-dependencies), to a | 19 their [transitive dependencies](glossary.html#transitive-dependencies), to a |
15 `packages` directory located next to the pubspec. For example: | 20 `packages` directory located next to the pubspec. For example: |
16 | 21 |
17 $ pub install | 22 $ pub install |
18 Dependencies installed! | 23 Dependencies installed! |
19 | 24 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 installed. Dependencies downloaded over the internet, such as those from Git and | 67 installed. Dependencies downloaded over the internet, such as those from Git and |
63 [pub.dartlang.org](http://pub.dartlang.org), are stored in a system-wide cache | 68 [pub.dartlang.org](http://pub.dartlang.org), are stored in a system-wide cache |
64 and linked to from the `packages` directory. This means that if multiple | 69 and linked to from the `packages` directory. This means that if multiple |
65 packages use the same version of the same dependency, it will only need to be | 70 packages use the same version of the same dependency, it will only need to be |
66 downloaded and stored locally once. It also means that it's safe to delete the | 71 downloaded and stored locally once. It also means that it's safe to delete the |
67 `packages` directory without worrying about re-downloading packages. | 72 `packages` directory without worrying about re-downloading packages. |
68 | 73 |
69 By default, the system package cache is located in the `.pub-cache` subdirectory | 74 By default, the system package cache is located in the `.pub-cache` subdirectory |
70 of your home directory. However, it may be configured by setting the `PUB_CACHE` | 75 of your home directory. However, it may be configured by setting the `PUB_CACHE` |
71 environment variable before running Pub. | 76 environment variable before running Pub. |
OLD | NEW |