Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When having a custom registry in .npmrc, yarn doesn't use it and keep using the default npm registry instead. This results in errors during install with:
error Couldn't find package "aaa" on the "npm" registry.
If the current behavior is a bug, please provide the steps to reproduce.
Create a npmrc file with a custom registry:
registry = https://another-registry.com
Then try to install your dependencies from the custom registry
What is the expected behavior?
It worked fine with v0.x. The custom registry was used when fetching the dependencies.
Please mention your node.js, yarn and operating system version.
Node 8.4.0
Yarn 1.0.1
Mac OS Sierra
The error message is misleading since it just uses the registry id but uses the URL provided underneath. I think you are experiencing an issue that is fixed on master. Would you mind trying one of the nightlies?
I'll use this issue to make the error message more accurate if your issue is resolved on master. Thanks for reporting!
Indeed, it worked with the latest nightly.
Do you know when a new version of yarn with this fix will be released?
Thank you.
Do you know when a new version of yarn with this fix will be released?
We are getting ready for it as we speak. It should be out in a few days.
Thanks for verifying!
Oh wait, I need to keep this open to fix the error message :)
I think you are experiencing an issue that is fixed on master. Would you mind trying one of the nightlies?
@BYK Could you point me to this issue? I think we're experiencing it on 1.0.1. Yarn doesn't seem to be finding (getting a 404) private modules resolved on the npmjs registry. I want to see if ya'll have resolved it already.
It looks like the nightly build fixes this issue.
Please, release it ;)
Please, release it ;)
Noo, I'm saving it for myself :P
I think this can be closed. Seems to be fixed in 1.0.2 https://github.com/yarnpkg/yarn/releases/tag/v1.0.2
馃帀
Most helpful comment
Noo, I'm saving it for myself :P