Skip to content

Commit 77711aa

Browse files
authored
working-with-the-npm-registry.md
1 parent e1464b6 commit 77711aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,12 @@ You also need to add the `.npmrc` file to your project so that all requests to i
221221
npm install
222222
```
223223

224+
2. Install the package globally.
225+
226+
````shell
227+
npm install -g
228+
````
229+
224230
### Installing packages from other organizations
225231

226232
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 %}.

0 commit comments

Comments
 (0)