Does not work in a proxified environment
Created by: Lodin
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 make yarn
work I have to execute yarn config set proxy <...>
and yarn config set http-proxy <...>
. npm
requires the same actions as well. When I try to install a package with yarn
, 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 the create-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.2 -
npm -v
: 5.0.3 -
yarn --version
: 0.27.5
Then, specify:
- Operating system: Windows 7
Steps to Reproduce
- Enable a proxy applied to all internet connections (Unfortunately, I don't know details, I just work on this system)
- Make sure your local yarn config is empty.
- Execute
yarn config set proxy <your proxy here>
andyarn config set http-proxy <your proxy here>
- Try
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.