Cannot install package from github package registry #25680
-
I have an npm package uploaded to a organisation repo. Let’s call my org I have two sets of errors:
.npmrc
error trace:
Not sure know why it looks up Whats weird is when I switch the case of the org to lowercase I get a whole different error:
error trace:
The package is there in the repo; From these logs I don’t know how to proceed. Anyone know what could be wrong? I have no proxy / http_proxy settings configured for npm |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The first thing I notice is your .npmrc is set up for The npm cli will speak to the default registry The second issue is because the URL you should be using is |
Beta Was this translation helpful? Give feedback.
-
Thank you for pointing this out. I’m obviously blind; and not very smart. |
Beta Was this translation helpful? Give feedback.
The first thing I notice is your .npmrc is set up for
@Orgname
but the logs you’re showing are@org/kafka-client
. Can you confirm that you’re installing@Orgname/kafka-client
.The npm cli will speak to the default registry
registry.npmjs.com
when it doesn’t find a matching scope that is set to an alternate registry.The second issue is because the URL you should be using is
npm.pkg.github.com
— using.org
will definitely fail with the message you’ve got because that domain name doesn’t exist :slight_smile: