Skip to content
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 fails to install public scoped packages when _auth is defined in .npmrc #2515

Closed
AzGoalie opened this issue Jan 20, 2017 · 4 comments
Closed

Comments

@AzGoalie
Copy link

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
@enriquecaballero
Copy link

I have the exact same thing happening to me with the exact same package.

@enriquecaballero
Copy link

enriquecaballero commented Mar 15, 2017

I was able to fix this by setting always-auth to true. Running yarn v0.21.3; installed via Homebrew. Nevermind. Once I set that to true it complained about babel-polyfill ...

@tautvilas
Copy link

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.

paul-sachs pushed a commit to IBM/capital-components that referenced this issue Jul 8, 2019
Yarn had issues install dependencies due to private scoped packages and custom _auth value in
.npmrc. See yarnpkg/yarn#2515
@paul-soporan
Copy link
Member

Closing as we stopped reading .npmrc files in v2.

https://yarnpkg.com/getting-started/migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants