Yarn fails to install public scoped packages when _auth is defined in .npmrc

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

What is the current behavior?
Yarn fails to find scoped packages when _auth is defined in .npmrc.

If the current behavior is a bug, please provide the steps to reproduce.
Sample repository located: https://github.com/AzGoalie/public-scope-yarn-install-failure
Create a project with a package.json and .npmrc
Add "@turf/turf": "3.4.1" to dependencies in package.json
Add always-auth=false and _auth=fake-auth-token to .npmrc
Run yarn install

What is the expected behavior?
Yarn should install the scoped package.

Please mention your node.js, yarn and operating system version.

Yarn version: 
  0.18.1

Node version: 
  7.4.0

Platform: 
  win32 x64

Author: Fantashit

1 thought on “Yarn fails to install public scoped packages when _auth is defined in .npmrc

  1. I have same issue. If I have _auth token in .npmrc I can not successfully excecute create-react-native-app. yarn fails with 403 on expo dependencies/users.

Comments are closed.