Skip to content

Commit e31d9fc

Browse files
committed
docs
1 parent fba909a commit e31d9fc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ In this case if you really did need your package to use a newer version you woul
128128

129129
`npm update -g` will apply the `update` action to each globally installed package that is `outdated` -- that is, has a version that is different from `wanted`.
130130

131-
Note: Globally installed packages are treated as if they are installed with a caret semver range specified.
132-
So if you require to update to `latest` you may need to run `npm install -g [<pkg>...]`
131+
Note: Globally installed packages do not have a `package.json` semver range available, so their `wanted` version is `latest`.
133132

134133
NOTE: If a package has been upgraded to a version newer than `latest`, it will be _downgraded_.
135134

0 commit comments

Comments
 (0)