-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Does not work in a proxified environment #2832
Comments
We've never seen this before as I assume it's a pretty rare occurrence; we'd welcome a PR to correct this behavior: https://github.com/facebookincubator/create-react-app/blob/master/packages/create-react-app/createReactApp.js#L616. |
I'm running into the same issue. I am also required to connect via a proxy, and I continue to get the "You appear to be offline" error. I don't have enough experience with node to suggest a PR with an alternative to this However, @Lodin, a temporary fix is to comment out the |
If the environment variable `https_proxy` is set, test that the proxy name is resolveable rather than 'registry.yarnpkg.com'. This fixes facebook#2832.
I have the same problem. @bsyk solution seems to work although warnings are still emitted:
|
…(#2884) * Adjust the `checkIfOnline` check if in a corporate proxy environment If the environment variable `https_proxy` is set, test that the proxy name is resolveable rather than 'registry.yarnpkg.com'. This fixes #2832. * Adjust to check yarnpkg.com first, then check the proxy address only if that failed
…(#2884) * Adjust the `checkIfOnline` check if in a corporate proxy environment If the environment variable `https_proxy` is set, test that the proxy name is resolveable rather than 'registry.yarnpkg.com'. This fixes #2832. * Adjust to check yarnpkg.com first, then check the proxy address only if that failed
…acebook#2884) * Adjust the `checkIfOnline` check if in a corporate proxy environment If the environment variable `https_proxy` is set, test that the proxy name is resolveable rather than 'registry.yarnpkg.com'. This fixes facebook#2832. * Adjust to check yarnpkg.com first, then check the proxy address only if that failed
…(#2884) * Adjust the `checkIfOnline` check if in a corporate proxy environment If the environment variable `https_proxy` is set, test that the proxy name is resolveable rather than 'registry.yarnpkg.com'. This fixes #2832. * Adjust to check yarnpkg.com first, then check the proxy address only if that failed
+1 |
…acebook#2884) * Adjust the `checkIfOnline` check if in a corporate proxy environment If the environment variable `https_proxy` is set, test that the proxy name is resolveable rather than 'registry.yarnpkg.com'. This fixes facebook#2832. * Adjust to check yarnpkg.com first, then check the proxy address only if that failed
Is this a bug report?
Yes.
I'm trying to initialize a project with
create-react-app
in an environment, where all connections go through the proxy. To makeyarn
work I have to executeyarn config set proxy <...>
andyarn config set http-proxy <...>
.npm
requires the same actions as well. When I try to install a package withyarn
, everyting works well.However,
create-react-app
complains that "You appear to be offline" and fails due to emptiness of yarn local cache. I assume it is connected with proxy, and thecreate-react-app
checking for online connection fails because of proxy.Is there a workaround for this problem? Can I just disable this checking completely?
Can you also reproduce the problem with npm 4.x?
I haven't tried it, but I guess yes.
Which terms did you search for in User Guide?
There is no answer for this question
Environment
node -v
: 8.1.2npm -v
: 5.0.3yarn --version
: 0.27.5Then, specify:
Steps to Reproduce
yarn config set proxy <your proxy here>
andyarn config set http-proxy <your proxy here>
create-react-app <your project name>
. It should display: "You appear to be offline".Expected Behavior
It should detect connection with proxy correctly
or
I should be able to disable checking manually, e.g. with a key
--no-offline-mode
Actual Behavior
create-react-app
complains: "You appear to be offline" and fails due to emptiness of yarn local cache.The text was updated successfully, but these errors were encountered: