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 installing private modules without credentials #7157

Open
furstenheim opened this issue Mar 29, 2019 · 0 comments
Open

Yarn installing private modules without credentials #7157

furstenheim opened this issue Mar 29, 2019 · 0 comments

Comments

@furstenheim
Copy link

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

What is the current behavior?
In the same host I have two different projects. One project "A" with a .npmrc file, the other "B" one without.
Package json requires a private module that is only accessible in npm with the .npmrc credentials.
If I execute yarn add @private-scope/private-module it works in A and it fails in B, as expected.

However, If I run yarn install it works in both, even though B depends on a private package and it has no access to it.

After executing yarn clean cache the same command fails on B with message:

Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"

What is the expected behavior?

In the project without .npmrc credentials yarn install should consistently fail. Not be dependent on cache.

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

yarn version 1.12.3
Node version 8

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

1 participant