Skip to content

Commit

Permalink
fix(config): update link definition
Browse files Browse the repository at this point in the history
The behavior for installing global versions if found has never been part
of npm@7.

PR-URL: #3418
Credit: @wraithgar
Close: #3418
Reviewed-by: @lukekarrys
  • Loading branch information
wraithgar authored and lukekarrys committed Jun 16, 2021
1 parent 16a95c6 commit dcc1366
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 48 deletions.
13 changes: 1 addition & 12 deletions docs/content/commands/npm-ls.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,18 +155,7 @@ variable will be set to `'production'` for all lifecycle scripts.
* Default: false
* Type: Boolean

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.

#### `unicode`

Expand Down
13 changes: 1 addition & 12 deletions docs/content/using-npm/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -743,18 +743,7 @@ Use of `legacy-peer-deps` is not recommended, as it will not enforce the
* Default: false
* Type: Boolean

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.

#### `local-address`

Expand Down
14 changes: 2 additions & 12 deletions lib/utils/config/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
`,
})

Expand Down
13 changes: 1 addition & 12 deletions tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -622,18 +622,7 @@ Use of \`legacy-peer-deps\` is not recommended, as it will not enforce the
* Default: false
* Type: Boolean
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.
#### \`local-address\`
Expand Down

0 comments on commit dcc1366

Please sign in to comment.