Content-Length: 274843 | pFad | http://github.com/npm/cli/commit/dd5699f7f0dcf9e5ad1c5549f3eaacaa1715f8eb

33 docs(update): Fix a typo and remove unneeded statement (#7152) · npm/cli@dd5699f · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/npm/cli/commit/dd5699f7f0dcf9e5ad1c5549f3eaacaa1715f8eb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy