-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Yarn do not respect registry defined in .npmrc file when workspaces feature is being used #4458
Comments
We're having the same issue, more than a year later. |
This is annoying and unexpected. Some workarounds are documented in https://doppelmutzi.github.io/yarn-workspaces-bug/ |
bump. This is quite cumbersome with workspaces that have 30 modules. Copying updates to the npmrc file to each module ... should be a simple fix? |
As a workaround, you can update your
to define your private registries. Best I can determine, only the actual |
Closing as in v2 (where you need to use a |
Do you want to request a feature or report a bug?
Bug
I have several packages under
packages/
directory and have turned onworkspaces
feature.What is the current behavior?
After I add
"workspaces": [
section to package.json yarn fails withCouldn't find package "X" on the "npm" registry
even though I have.npmrc
on the root level and in each package with custom registry in it, lock files are here and all of them resolve package X to custom artifactory's URL.What is the expected behavior?
yarn
does not fail and resolves packages from the registry defined in.npmrc
Please mention your node.js, yarn and operating system version.
macOS 10.12.6
node v7.10.0
yarn 1.0.2
The text was updated successfully, but these errors were encountered: