Skip to content

Commit 5ac0577

Browse files
arcanisHaroenv
authored andcommitted
Update 2016-11-24-offline-mirror.md (#924)
1 parent aa05895 commit 5ac0577

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

_posts/2016-11-24-offline-mirror.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,12 @@ $ mv ~/.yarnrc ./
100100

101101
### Initialize the new lockfile
102102

103-
Remove node_modules and yarn.lock that were generated previously and run yarn install again:
103+
Remove the node_modules that got generated previously and run yarn install again:
104104

105105
```bash
106106
$ rm -rf node_modules/ yarn.lock
107107
$ yarn install
108108
yarn install v0.17.8
109-
info No lockfile found.
110109
[1/4] 🔍 Resolving packages...
111110
[2/4] 🚚 Fetching packages...
112111
[3/4] 🔗 Linking dependencies...
@@ -115,7 +114,7 @@ success Saved lockfile.
115114
✨ Done in 0.57s.
116115
```
117116

118-
The dependency resolutions in your `yarn.lock` should look the same as the original:
117+
The dependency resolutions in your `yarn.lock` should look the same as the original (you shouldn't have any diff):
119118

120119
```yaml
121120
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
@@ -140,9 +139,9 @@ mime-types@^2.1.13:
140139
mime-db "~1.25.0"
141140
```
142141

143-
The offline cache filename is derived from the base name of the resolved URL. It will be stored in the npm-packages-offline-cache folder that was configured earlier. Each resolved dependency also contains a checksum after the file name to ensure that no one mangles with the downloaded files.
142+
The offline cache file will be stored in the npm-packages-offline-cache folder that was configured earlier. Each resolved dependency also contains a checksum after the file name to ensure that no one mangles with the downloaded files.
144143

145-
And inside the “Offline mirror” folder we have the .tgz files that yarn will use for the following builds without reaching out to network.
144+
If we look inside the “Offline mirror” folder we'll see the .tgz files that yarn will use for the following builds without reaching out to network:
146145

147146
```bash
148147
$ ls npm-packages-offline-cache/

0 commit comments

Comments
 (0)