Unable to retrieve npm package created and published to private repo after following documentation instructions #26024
-
I followed the GitHub Packages documentation here: https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages I have the key in my ~/.npmrc per the instructions above (direct link removed because of link limits) I logged in to npm because the ~/.npmrc config did not seem to work, even though I’ve checked the format of the contents multiple times I published my package to my org’s repo, and can see it on the repo landing page under I then go to install the same package in another repo, also under the same organization, on the same computer, in a different folder location, after configuring the files according to the instructions here: https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages#installing-a-package Here is the output, modified for security:
If I’m unable to install on the same machine with a valid token that published (and has read access to) the org’s package repo, I’m not sure how I can expect other developers in my org to be able to use this. I need guidance on how to properly install a package from a private repo as the documented instructions do not seem to work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So, after diving into Stack Overflow for far too long, I found this: stackoverflow.comYarn can't find private Github npm registry
github, npm, yarnpkg
asked by
Matthew Mitchener
on 05:41AM - 10 Oct 19 UTC
The summary from the accepted answer there: .yarnrc
After updating the |
Beta Was this translation helpful? Give feedback.
So, after diving into Stack Overflow for far too long, I found this:
stackoverflow.comYarn can't find private Github npm registry
The summary from the accepted answer there:
.yarnrc
After updating the
.yarnrc
per above, I was able toyarn add @org/packagename
and it installed as expected.