Registry settings on .npmrc file being ignored

Do you want to request a feature or report a bug?

What is the current behavior?
Yarn fails to use registry specified in .npmrc.

If the current behavior is a bug, please provide the steps to reproduce.
Create a project with a package.json and .npmrc
Add @troveng/turbokit@0.3.31 to dependencies in package.json

Run yarn install

What is the expected behavior?
Yarn should install and use the registry settings from .npmrc.

Please mention your node.js, yarn and operating system version.
node = 6.9.5
yarn = 0.24.6
MacOS Sierra

We have some private repos. When doing yarn install some packages are not found because yarn is using the yarn registry and not npm’s specified in the .npmrc. We can fix it via yarn config set commands. Is the expected behavior to have yarn config itself via .npmrc or we have to explicitly do it via cli?

Author: Fantashit

1 thought on “Registry settings on .npmrc file being ignored

  1. @jhabdas We had to manually set the config already set on .npmrc like so:
    yarn config set registry
    yarn config set @troveng:registry
    If yo do a yarn config list before and after you would see the change.

Comments are closed.