You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2016-11-24-offline-mirror.md
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -100,13 +100,12 @@ $ mv ~/.yarnrc ./
100
100
101
101
### Initialize the new lockfile
102
102
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:
104
104
105
105
```bash
106
106
$ rm -rf node_modules/ yarn.lock
107
107
$ yarn install
108
108
yarn install v0.17.8
109
-
info No lockfile found.
110
109
[1/4] 🔍 Resolving packages...
111
110
[2/4] 🚚 Fetching packages...
112
111
[3/4] 🔗 Linking dependencies...
@@ -115,7 +114,7 @@ success Saved lockfile.
115
114
✨ Done in 0.57s.
116
115
```
117
116
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):
119
118
120
119
```yaml
121
120
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
@@ -140,9 +139,9 @@ mime-types@^2.1.13:
140
139
mime-db "~1.25.0"
141
140
```
142
141
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.
144
143
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:
0 commit comments