New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find packages in private npm registry #678
Comments
I am also having the same issue. Yarn doesn't seem to see the registry defined in my .npmrc file |
For my config:
I am getting:
which is strange. |
There's an open work issue on this currently - #521 |
Issue #521 talks about private repos hosted by npm, but for my setup I have my own private server hosting my own private package. I am not sure if that changes things. |
My case is where we use Gemfury as a private registry. It just needs to support the |
Yes, if the I think this is a different feature than #521 which is about private modules in the official npm registry and not about private/custom registries. |
I also have the same problem and I'm using artifactory. In another issue someone suggested to put registry info in the in .yarnrc
However, when I do this I cannot find the other packages now. I get this error
Same setup works perfectly fine with npm |
I am also experiencing this, yarn cannot find packages - we're using a Nexus npm registry which also mirrors and caches npm's registry. I am getting errors like:
also if this helps:
|
@Zensavona I've found that adding double slash at the end of your registry url fixes this issue. I've filed this as a bug in detail here #775 |
Thanks @serkanyersen I actually just saw your other ticket and tried that, I changed both my
|
make sure you got the correct formatting on .yarnrc don't put there is a pull request at the moment that would probably fix this #774 |
Guys, how to set |
@laubstein This issue is about more than just issues with URL resolution. The config in the description included |
This now works for me in yarn 0.16.1. |
I am still having the issue with this, I tried to put "//" at the end of the .yarnrc file but it is not working for me. |
What worked for me as having only an
|
@matthewblewitt Thank you for your response! Yes, it was due to token expiration for the registry. |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Does not find package found only in private npm registry
If the current behavior is a bug, please provide the steps to reproduce.
Include a dependency in private repo that does not exist on the npm registry
What is the expected behavior?
It should fall back to the private npm registry when it cannot find the packages in
Please mention your node.js, yarn and operating system version.
I expected it to then look at my npm registry setting (see below) and look for the package from my private repo. I have tried changing my yarn registry to match my npm registry, but that doesn't help. If it cannot find a package from yarn, it should look in the private registry.
The text was updated successfully, but these errors were encountered: