Skip to content

Commit 2c9b871

Browse files
wangsaiwraithgar
wangsai
authored andcommitted
fix(docs): fix broken links
PR-URL: #3182 Credit: @wangsai Close: #3182 Reviewed-by: @wraithgar
1 parent 701627c commit 2c9b871

File tree

12 files changed

+18
-25
lines changed

12 files changed

+18
-25
lines changed

docs/content/commands/npm-ci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ npm ci
1212

1313
### Description
1414

15-
This command is similar to [`npm install`](/cli-commands/install), except
15+
This command is similar to [`npm install`](/commands/npm-install), except
1616
it's meant to be used in automated environments such as test platforms,
1717
continuous integration, and deployment -- or any situation where you want
1818
to make sure you're doing a clean install of your dependencies.

docs/content/commands/npm-dedupe.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Using `npm find-dupes` will run the command in `--dry-run` mode.
7474

7575
### See Also
7676

77-
* [npm find-dupes](/cli-commands/find-dupes)
78-
* [npm ls](/cli-commands/ls)
79-
* [npm update](/cli-commands/update)
80-
* [npm install](/cli-commands/install)
77+
* [npm find-dupes](/commands/npm-find-dupes)
78+
* [npm ls](/commands/npm-ls)
79+
* [npm update](/commands/npm-update)
80+
* [npm install](/commands/npm-install)

docs/content/commands/npm-deprecate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ format an empty string.
4444

4545
* [npm publish](/commands/npm-publish)
4646
* [npm registry](/using-npm/registry)
47-
* [npm owner](/cli-commands/owner)
48-
* [npm owner](/cli-commands/adduser)
47+
* [npm owner](/commands/npm-owner)
48+
* [npm owner](/commands/npm-adduser)

docs/content/commands/npm-explore.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ The shell to run for the `npm explore` command.
4444
* [npm folders](/configuring-npm/folders)
4545
* [npm edit](/commands/npm-edit)
4646
* [npm rebuild](/commands/npm-rebuild)
47-
* [npm build](/commands/npm-build)
4847
* [npm install](/commands/npm-install)

docs/content/commands/npm-find-dupes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ duplications, without actually changing the package tree.
1717

1818
### See Also
1919

20-
* [npm dedupe](/cli-commands/dedupe)
21-
* [npm ls](/cli-commands/ls)
22-
* [npm update](/cli-commands/update)
23-
* [npm install](/cli-commands/install)
20+
* [npm dedupe](/commands/npm-dedupe)
21+
* [npm ls](/commands/npm-ls)
22+
* [npm update](/commands/npm-update)
23+
* [npm install](/commands/npm-install)
2424

docs/content/commands/npm-install.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,6 @@ the specific folder structures that npm creates.
538538
* [npm link](/commands/npm-link)
539539
* [npm rebuild](/commands/npm-rebuild)
540540
* [npm scripts](/using-npm/scripts)
541-
* [npm build](/commands/npm-build)
542541
* [npm config](/commands/npm-config)
543542
* [npmrc](/configuring-npm/npmrc)
544543
* [npm registry](/using-npm/registry)

docs/content/commands/npm-unpublish.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This removes a package version from the registry, deleting its entry and
3434
removing the tarball.
3535

3636
The npm registry will return an error if you are not [logged
37-
in](/commands/npm-login).
37+
in](/commands/npm-adduser).
3838

3939
If you do not specify a version or if you remove all of a package's
4040
versions then the registry will remove the root package entry entirely.
@@ -52,4 +52,4 @@ passed.
5252
* [npm registry](/using-npm/registry)
5353
* [npm adduser](/commands/npm-adduser)
5454
* [npm owner](/commands/npm-owner)
55-
* [npm login](/commands/npm-login)
55+
* [npm login](/commands/npm-adduser)

docs/content/commands/npm-view.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ npm view express contributors.name contributors.email
7373

7474
"Person" fields are shown as a string if they would be shown as an
7575
object. So, for example, this will show the list of `npm` contributors in
76-
the shortened string format. (See [`package.json`](/configuring-npm/package.json) for more on this.)
76+
the shortened string format. (See [`package.json`](/configuring-npm/package-json) for more on this.)
7777

7878
```bash
7979
npm view npm contributors

docs/content/commands/npm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ following help topics:
107107
Create an account or log in. When you do this, npm will store
108108
credentials in the user config file config file.
109109
* publish:
110-
Use the [`npm publish`](/commands/npm-publish`) command to upload your
110+
Use the [`npm publish`](/commands/npm-publish) command to upload your
111111
code to the registry.
112112

113113
#### Configuration

docs/content/configuring-npm/folders.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ not be included in the package tarball.
205205
206206
This allows a package maintainer to install all of their dependencies
207207
(and dev dependencies) locally, but only re-publish those items that
208-
cannot be found elsewhere. See [`package.json`](/configuring-npm/package.json) for more information.
208+
cannot be found elsewhere. See [`package.json`](/configuring-npm/package-json) for more information.
209209
210210
### See also
211211

docs/content/configuring-npm/package-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ tarball or git URL.
566566
**Please do not put test harnesses or transpilers or other "development"
567567
time tools in your `dependencies` object.** See `devDependencies`, below.
568568

569-
See [semver](/using-npm/semver#versions) for more details about specifying version ranges.
569+
See [semver](https://github.com/npm/node-semver#versions) for more details about specifying version ranges.
570570

571571
* `version` Must match `version` exactly
572572
* `>version` Must be greater than `version`

docs/content/using-npm/scripts.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,6 @@ The advantage of doing these things at `prepublish` time is that they can be don
118118

119119
* `prepare`
120120

121-
#### [`npm env`](/commands/npm-env)
122-
123-
* `env` (You can override the default behavior of `npm env` by defining
124-
a custom `env` entry in your `scripts` object)
125-
126121
#### [`npm install`](/commands/npm-install)
127122

128123
These also run when you run `npm install -g <pkg-name>`
@@ -179,7 +174,7 @@ If there is a `restart` script defined, these events are run, otherwise
179174
* `restart`
180175
* `postrestart`
181176

182-
#### [`npm run <user defined>`](/commands/npm-run)
177+
#### [`npm run <user defined>`](/commands/npm-run-script)
183178

184179
* `pre<user-defined>`
185180
* `<user-defined>`

0 commit comments

Comments
 (0)