Skip to content

Commit

Permalink
docs(update): Fix a typo and remove unneeded statement (#7152)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanKaplanSES authored Jan 19, 2024
1 parent 162c82e commit dd5699f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/lib/content/commands/npm-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ However, if `app`'s `package.json` contains:
```

In this case, running `npm update` will install `dep1@1.1.2`. Even though the
`latest` tag points to `1.2.2`, this version do not satisfy `~1.1.1`, which is
`latest` tag points to `1.2.2`, this version does not satisfy `~1.1.1`, which is
equivalent to `>=1.1.1 <1.2.0`. So the highest-sorting version that satisfies
`~1.1.1` is used, which is `1.1.2`.

Expand All @@ -90,8 +90,7 @@ Suppose `app` has a caret dependency on a version below `1.0.0`, for example:
}
```

`npm update` will install `dep1@0.2.0`, because there are no other
versions which satisfy `^0.2.0`.
`npm update` will install `dep1@0.2.0`.

If the dependence were on `^0.4.0`:

Expand Down

0 comments on commit dd5699f

Please sign in to comment.