Skip to content

Commit 8743366

Browse files
docs: add hash to "tag" config link (#5519)
* docs: add hash to "tag" config link Minor change. [using-npm/config](https://docs.npmjs.com/cli/v8/using-npm/config) is a long page -- heck, the subtitle is "More than you probably want to know about npm configuration" -- so instead of dumping people at the top of it when they follow the link to learn about the "tag" config, let's send 'em right to the relevant bit. Aside from it being a long page, one more motivation: trying to get to the section by searching is also slow, it's the 16th (of 24) occurrence of "tag" on the page. (though to be fair, only the 4th if they catch it in the table of contents) * docs: fix some nonstandard formatting * docs: more useful link Co-authored-by: Luke Karrys <luke@lukekarrys.com>
1 parent 5645c51 commit 8743366

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/content/commands/npm-adduser.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Note: This command is unaware of workspaces.
2727

2828
Create a new user in the specified registry, and save the credentials to
2929
the `.npmrc` file. If no registry is specified, the default registry
30-
will be used (see [`config`](/using-npm/config)).
30+
will be used (see [`registry`](/using-npm/registry)).
3131

3232
When using `legacy` for your `auth-type`, the username, password, and
3333
email are read in from prompts.

docs/content/commands/npm-config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ variables, `npmrc` files, and in some cases, the `package.json` file.
3535
See [npmrc](/configuring-npm/npmrc) for more information about the npmrc
3636
files.
3737
38-
See [config(7)](/using-npm/config) for a more thorough explanation of the
38+
See [config](/using-npm/config) for a more thorough explanation of the
3939
mechanisms involved, and a full list of config options available.
4040
4141
The `npm config` command can be used to update and edit the contents

docs/content/commands/npm-install.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ into a tarball (b).
127127
* `npm install [<@scope>/]<name>`:
128128

129129
Do a `<name>@<tag>` install, where `<tag>` is the "tag" config. (See
130-
[`config`](/using-npm/config). The config's default value is `latest`.)
130+
[`config`](/using-npm/config#tag). The config's default value is `latest`.)
131131
132132
In most cases, this will install the version of the modules tagged as
133133
`latest` on the npm registry.

docs/content/using-npm/package-spec.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ Examples:
101101

102102
### See also
103103

104-
[npm-package-arg](https://npm.im/npm-package-arg)
105-
[scope](/using-npm/scope)
106-
[config](/using-npm/config)
104+
* [npm-package-arg](https://npm.im/npm-package-arg)
105+
* [scope](/using-npm/scope)
106+
* [config](/using-npm/config)

0 commit comments

Comments
 (0)