From 77711aa0f93d2fc3e802b682f1c335de4e37a368 Mon Sep 17 00:00:00 2001 From: Abhijeet Shrimant Jadhav <121550726+abhijeet1681@users.noreply.github.com> Date: Mon, 4 Aug 2025 00:46:57 +0530 Subject: [PATCH] working-with-the-npm-registry.md --- .../working-with-the-npm-registry.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md b/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md index f44cbde6f1e1..a2464c55176a 100644 --- a/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md +++ b/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md @@ -221,6 +221,12 @@ You also need to add the `.npmrc` file to your project so that all requests to i npm install ``` +2. Install the package globally. + + ````shell + npm install -g + ```` + ### Installing packages from other organizations 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 %}.