Skip to content

Commit dd5699f

Browse files
authored
docs(update): Fix a typo and remove unneeded statement (#7152)
1 parent 162c82e commit dd5699f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/lib/content/commands/npm-update.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ However, if `app`'s `package.json` contains:
7676
```
7777

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

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

93-
`npm update` will install `dep1@0.2.0`, because there are no other
94-
versions which satisfy `^0.2.0`.
93+
`npm update` will install `dep1@0.2.0`.
9594

9695
If the dependence were on `^0.4.0`:
9796

0 commit comments

Comments
 (0)