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

Modules not installed from custom registry when using yarn #5991

Closed
timsnadden opened this issue Dec 7, 2018 · 2 comments
Closed

Modules not installed from custom registry when using yarn #5991

timsnadden opened this issue Dec 7, 2018 · 2 comments

Comments

@timsnadden
Copy link

Is this a bug report?

Yes

Did you try recovering your dependencies?

N/A

Which terms did you search for in User Guide?

N/A

Environment

N/A

Steps to Reproduce

  1. Set a custom yarn or npm registry (e.g. yarn config set registry http://registry.npmjs.org/). A more realistic example would be an npm proxy that is inside a corporate network where users may not be able to make requests directly to the public registry.
  2. Create an app yarn create react-app app

Expected Behavior

Node modules are requested from the custom registry (in our example http://registry.npmjs.org/) and yarn.lock references the custom registry

Actual Behavior

Node modules are requested from the default registry (https://registry.yarnpkg.com/) and yarn.lock references the default registry. This can fail for users inside networks that can't access these URLs

@timsnadden
Copy link
Author

This would be fixed by something like #5745

@timsnadden timsnadden changed the title Modules not installed from custom registry Modules not installed from custom registry when using yarn Dec 7, 2018
@Timer
Copy link
Contributor

Timer commented Dec 18, 2018

Closing in favor of that issue or Yarn v2 where the registry is stripped from the lockfile by default.

@Timer Timer closed this as completed Dec 18, 2018
@lock lock bot locked and limited conversation to collaborators Jan 8, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants