Skip to content

Commit c07cd52

Browse files
authored
Fix broken examples in npm registry docs (#45875)
1 parent edfe039 commit c07cd52

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ If your instance has subdomain isolation enabled:
6969
{% endif %}
7070

7171
```shell
72-
//{% ifversion fpt or ghec %}npm.pkg.github.com{% else %}npm.HOSTNAME/{% endif %}/:_authToken=TOKEN
72+
//{% ifversion fpt or ghec %}npm.pkg.github.com{% else %}npm.HOSTNAME{% endif %}/:_authToken=TOKEN
7373
```
7474

7575
{% ifversion ghes %}
@@ -161,7 +161,7 @@ You can use `publishConfig` element in the `package.json` file to specify the re
161161

162162
```shell
163163
"publishConfig": {
164-
"registry": "https://{% ifversion fpt or ghec %}npm.pkg.github.com{% else %}npm. HOSTNAME/{% endif %}"
164+
"registry": "https://{% ifversion fpt or ghec %}npm.pkg.github.com{% else %}npm.HOSTNAME/{% endif %}"
165165
},
166166
```
167167

@@ -225,23 +225,23 @@ You also need to add the `.npmrc` file to your project so that all requests to i
225225

226226
### Installing packages from other organizations
227227

228-
By default, you can only use {% data variables.product.prodname_registry %} packages from one organization. If you'd like to route package requests to multiple organizations and users, you can add additional lines to your `.npmrc` file, replacing {% ifversion ghes %}`HOSTNAME` with the host name of {% data variables.location.product_location %} and {% endif %}`NAMESPACE` with the name of the personal account or organization {% ifversion packages-npm-v2 %}to which the package is scoped{% else %}that owns the repository containing the project{% endif %}.
228+
By default, you can only use {% data variables.product.prodname_registry %} packages from one organization. If you'd like to route package requests to multiple organizations and users, you can add additional lines to your `.npmrc` file, replacing {% ifversion ghes %}`HOSTNAME` with the host name of {% data variables.location.product_location %} and {% endif %}`NAMESPACE1` and `NAMESPACE2` with the names of the personal accounts or organizations {% ifversion packages-npm-v2 %}to which the packages are scoped{% else %}that own the repositories containing the projects{% endif %}.
229229

230230
{% ifversion ghes %}
231231
If your instance has subdomain isolation enabled:
232232
{% endif %}
233233

234234
```shell
235-
@NAMESPACE:registry=https://{% ifversion fpt or ghec %}npm.pkg.github.com{% else %}npm.HOSTNAME{% endif %}
236-
@NAMESPACE:registry=https://{% ifversion fpt or ghec %}npm.pkg.github.com{% else %}npm.HOSTNAME{% endif %}
235+
@NAMESPACE1:registry=https://{% ifversion fpt or ghec %}npm.pkg.github.com{% else %}npm.HOSTNAME{% endif %}
236+
@NAMESPACE2:registry=https://{% ifversion fpt or ghec %}npm.pkg.github.com{% else %}npm.HOSTNAME{% endif %}
237237
```
238238

239239
{% ifversion ghes %}
240240
If your instance has subdomain isolation disabled:
241241

242242
```shell
243-
@NAMESPACE:registry=https://HOSTNAME/_registry/npm
244-
@NAMESPACE:registry=https://HOSTNAME/_registry/npm
243+
@NAMESPACE1:registry=https://HOSTNAME/_registry/npm
244+
@NAMESPACE2:registry=https://HOSTNAME/_registry/npm
245245
```
246246

247247
{% endif %}

0 commit comments

Comments
 (0)