You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -101,16 +101,16 @@ You can use `publishConfig` element in the *package.json* file to specify the re
101
101
If your instance has subdomain isolation enabled:
102
102
{% endif %}
103
103
```shell
104
-
"publishConfig": {
105
-
"registry":"https://{% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>/{% endif %}"
106
-
},
104
+
"publishConfig": {
105
+
"registry":"https://{% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>/{% endif %}"
106
+
},
107
107
```
108
108
{% if currentVersion != "free-pro-team@latest" %}
109
109
If your instance has subdomain isolation disabled:
{% data reusables.package_registry.verify_repository_field %}
@@ -136,7 +136,7 @@ To ensure the repository's URL is correct, replace REPOSITORY with the name of t
136
136
137
137
You can install packages from {% data variables.product.prodname_registry %} by adding the packages as dependencies in the *package.json* file foryour project. For more information on using a *package.json*in your project, see "[Working with package.json](https://docs.npmjs.com/getting-started/using-a-package.json)"in the npm documentation.
138
138
139
-
By default, you can add packages from one organization. For more information, see [Installing packages from other organizations](#installing-packages-from-other-organizations)
139
+
By default, you can add packages from one organization. For more information, see "[Installing packages from other organizations](#installing-packages-from-other-organizations)."
140
140
141
141
You also need to add the *.npmrc* file to your project so all requests to install packages will go through {% data variables.product.prodname_registry %}. When you route all package requests through {% data variables.product.prodname_registry %}, you can use both scoped and unscoped packages from *npmjs.com*. For more information, see "[npm-scope](https://docs.npmjs.com/misc/scope)"in the npm documentation.
142
142
@@ -173,7 +173,7 @@ If your instance has subdomain isolation enabled:
173
173
{% endif %}
174
174
175
175
```shell
176
-
registry=https://{% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>/{% endif %}<em>OWNER</em>
176
+
registry=https://{% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>{% endif %}/<em>OWNER</em>
177
177
@<em>OWNER</em>:registry={% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>/{% endif %}
178
178
@<em>OWNER</em>:registry={% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>/{% endif %}
0 commit comments