Skip to content

Commit 24d5350

Browse files
authored
docs: fix and update scoped configuration example (#7742)
The [Auth related configuration](https://docs.npmjs.com/cli/v10/configuring-npm/npmrc#auth-related-configuration) docs contains a mistakenly commented configuration line. This PR makes the scope examples more clear by adding newlines and uncomment the valid configuration line.
1 parent ed4add1 commit 24d5350

File tree

1 file changed

+4
-1
lines changed
  • docs/lib/content/configuring-npm

1 file changed

+4
-1
lines changed

docs/lib/content/configuring-npm/npmrc.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,13 @@ _authToken=MYTOKEN
120120
@myorg:registry=https://somewhere-else.com/myorg
121121
@another:registry=https://somewhere-else.com/another
122122
//registry.npmjs.org/:_authToken=MYTOKEN
123+
123124
; would apply to both @myorg and @another
124-
; //somewhere-else.com/:_authToken=MYTOKEN
125+
//somewhere-else.com/:_authToken=MYTOKEN
126+
125127
; would apply only to @myorg
126128
//somewhere-else.com/myorg/:_authToken=MYTOKEN1
129+
127130
; would apply only to @another
128131
//somewhere-else.com/another/:_authToken=MYTOKEN2
129132
```

0 commit comments

Comments
 (0)