Skip to content

Fixes wording on the offline mirror post #924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions _posts/2016-11-24-offline-mirror.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,12 @@ $ mv ~/.yarnrc ./

### Initialize the new lockfile

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

```bash
$ rm -rf node_modules/ yarn.lock
$ yarn install
yarn install v0.17.8
info No lockfile found.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
Expand All @@ -115,7 +114,7 @@ success Saved lockfile.
✨ Done in 0.57s.
```

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

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

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.
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.

And inside the “Offline mirror” folder we have the .tgz files that yarn will use for the following builds without reaching out to network.
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:

```bash
$ ls npm-packages-offline-cache/
Expand Down