yarn
not respecting the local .npmrc
if ~/.npmrc
is present.
#3411
Labels
yarn
not respecting the local .npmrc
if ~/.npmrc
is present.
#3411
Do you want to request a feature or report a bug?
bug
What is the current behavior?
yarn
in the presence of~/.npmrc
does not respect the~/local/.npmrc
.If the current behavior is a bug, please provide the steps to reproduce.
This is to do with scoped internal packages.
You can only reproduce it if you are dealing with scoped internal (non-npm hosted packages).
~/.npmrc
file with the following content.//registry.npmjs.org/
~/local/.npmrc
file with theregistry
information for the scoped internal (non-npm hosted packages).package.json
listing the scoped internal (non-npm hosted packages) as dependencies.yarn
yarn
errors out witherror Couldn't find package "@organization/scoped-internal-package" on the "npm" registry.
yarn
is still trying to look for the dependency atnpm
~/.npmrc
is removed or renamed,yarn
works as desired..npmrc
,yarn
is giving higher precedence to the top most.npmrc
. It should be the reverse. While looking for.npmrc
yarn should look at the current directory.npmrc
and traverse up if not found.What is the expected behavior?
yarn
should give the highest precedence to the local.npmrc
file.Please mention your node.js, yarn and operating system version.
OS - macOS Sierra 10.12.4
node - 7.9.0
yarn 0.24.4
The text was updated successfully, but these errors were encountered: