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 1.10.1 does not work when your build environment are used with both a local repository and the npm public registry, however Yarn 1.9.4 does #6556

Open
mgentile6 opened this issue Oct 18, 2018 · 2 comments
Assignees
Labels

Comments

@mgentile6
Copy link

With a new build environment I installed yarn 1.10.1. Our environment uses a local Nexus repository "yarn-private" and during build time also downloads open source packages from https://registry.yarnpkg.com/. I ran the "yarn config set registry ..." to reference our local Nexus repository it also created the new .yarnrc file in users home directory. When I ran "yarn install" I would get the error below:

yarn install v1.10.1
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
error Couldn't find package xxxxxx required by xxxxxxx on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I then did a "npm uninstall -g yarn" followed by "npm install -g yarn@1.9.4" and the build worked. And I changed nothing else. Something must have changed in between yarn versions 1.9.4 and 1.10.1.

@ghost ghost assigned torifat Oct 18, 2018
@ghost ghost added the triaged label Oct 18, 2018
@eaustin
Copy link

eaustin commented Oct 18, 2018

I have the same issue and the performance is pretty bad. Takes a long time to even get to the error.

@nertzy
Copy link

nertzy commented Dec 2, 2020

This issue is pretty stale at the moment. Is this still a problem or can this be closed?

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

No branches or pull requests

4 participants