-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update docs for npmrc and package-json (#7743)
Updating Docs for `npmrc` - Updated example config, instead of `prefix` which can not be changed for project, instead added `cache` which can be used for all three config types project, user and global `package-json` - added alias example in package-json docs, which can be used to define alias for a package closes: #6839 closes: #7188
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -617,6 +617,7 @@ See [semver](https://github.com/npm/node-semver#versions) for more details about | |
* `tag` A specific version tagged and published as `tag` See [`npm | ||
dist-tag`](/commands/npm-dist-tag) | ||
* `path/path/path` See [Local Paths](#local-paths) below | ||
* `npm:@scope/pkg@version` Custom alias for a pacakge See [`package-spec`](/using-npm/package-spec#aliases) | ||
|
||
For example, these are all valid: | ||
|
||
|
@@ -634,7 +635,8 @@ For example, these are all valid: | |
"two": "2.x", | ||
"thr": "3.3.x", | ||
"lat": "latest", | ||
"dyl": "file:../dyl" | ||
"dyl": "file:../dyl", | ||
"kpg": "npm:[email protected]" | ||
} | ||
} | ||
``` | ||
|