Skip to content

Commit

Permalink
[refs #8095] docs(npmrc): clarify auth inheritance further
Browse files Browse the repository at this point in the history
  • Loading branch information
misse committed Feb 11, 2025
1 parent 7430f92 commit fd27b0a
Show file tree
Hide file tree
Showing 476 changed files with 99,729 additions and 12,024 deletions.
31 changes: 18 additions & 13 deletions docs/lib/content/configuring-npm/npmrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,24 @@ specific path on the host that path may also be provided, such as
_authToken=MYTOKEN

; good config
@myorg:registry=https://somewhere-else.com/myorg
@another:registry=https://somewhere-else.com/another
@anotherorg:registry=https:///somewhere-else.com/another/anotherorg
; would apply to any registry at https://registry.npmjs.org/ but not to any sub-path (see @anotherorg)
//registry.npmjs.org/:_authToken=MYTOKEN
; would apply to both @myorg and @another but noth @anotherorg
; //somewhere-else.com/:_authToken=MYTOKEN
; would apply only to @myorg
//somewhere-else.com/myorg/:_authToken=MYTOKEN1
; would apply only to @another
//somewhere-else.com/another/:_authToken=MYTOKEN2
; would apply only to @anotherorg
//somewhere-else.com/another/anotherorg:_authToken=MYTOKEN3
@myorg:registry=https://somewhere-else.npmjs.org/myorg
@another:registry=https://somewhere-else.npmjs.org/another
@anotherorg:registry=https:///registry.npmjs.org/path/anotherorg

; Applies to any registry at https://registry.npmjs.org/ but not to any sub-path (see @anotherorg)
//registry.npmjs.org/:_authToken=MYTOKEN

; Applies to both @myorg and @another but noth @anotherorg
//somewhere-else.npmjs.org/:_authToken=MYTOKEN

; Only applies to @myorg
//somewhere-else.npmjs.org/myorg/:_authToken=MYTOKEN1

; Only applies to @another
//somewhere-else.npmjs.org/another/:_authToken=MYTOKEN2

; Only applies to @anotherorg
//registry.npmjs.org/path/anotherorg:_authToken=MYTOKEN3
```

### See also
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fd27b0a

Please sign in to comment.