diff options
author | Gar <gar+gh@danger.computer> | 2021-06-15 23:24:56 +0300 |
---|---|---|
committer | Luke Karrys <lukekarrys@gmail.com> | 2021-06-17 00:57:01 +0300 |
commit | dcc13662c1d3e22eaf392647a9cddbb5b0710d24 (patch) | |
tree | ae86875ac398d83fb1b2b209d32002f3648b9d2c /lib | |
parent | 16a95c64731609c69630c17c45b16edb53ee81b2 (diff) |
fix(config): update link definition
The behavior for installing global versions if found has never been part
of npm@7.
PR-URL: https://github.com/npm/cli/pull/3418
Credit: @wraithgar
Close: #3418
Reviewed-by: @lukekarrys
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/config/definitions.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js index b6f7c8431..ce1ea766c 100644 --- a/lib/utils/config/definitions.js +++ b/lib/utils/config/definitions.js @@ -1086,18 +1086,8 @@ define('link', { default: false, type: Boolean, description: ` - If true, then local installs will link if there is a suitable globally - installed package. - - Note that this means that local installs can cause things to be installed - into the global space at the same time. The link is only done if one of - the two conditions are met: - - * The package is not already installed globally, or - * the globally installed version is identical to the version that is - being installed locally. - - When used with \`npm ls\`, only show packages that are linked. + Used with \`npm ls\`, limiting output to only those packages that are + linked. `, }) |