Skip to content

Commit f9abee7

Browse files
authored
docs: update commit-ish default branch (#5205)
* docs: update commit-ish default branch To match with https://github.com/npm/cli/blob/latest/docs/content/using-npm/developers.md#what-is-a-package
1 parent 9905d0e commit f9abee7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/content/commands/npm-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ into a tarball (b).
311311
can be any valid semver range or exact version, and npm will look for
312312
any tags or refs matching that range in the remote repository, much as
313313
it would for a registry dependency. If neither `#<commit-ish>` or
314-
`#semver:<semver>` is specified, then `master` is used.
314+
`#semver:<semver>` is specified, then the default branch is used.
315315
316316
As with regular git dependencies, `dependencies` and `devDependencies`
317317
will be installed if the package has a `prepare` script before the

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ commit. If the commit-ish has the format `#semver:<semver>`, `<semver>` can
632632
be any valid semver range or exact version, and npm will look for any tags
633633
or refs matching that range in the remote repository, much as it would for
634634
a registry dependency. If neither `#<commit-ish>` or `#semver:<semver>` is
635-
specified, then `master` is used.
635+
specified, then the default branch is used.
636636

637637
Examples:
638638

0 commit comments

Comments
 (0)