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

Lines changed: 2 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy