Skip to content

Does not work in a proxified environment #2832

Closed
@Lodin

Description

@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

  1. node -v: 8.1.2
  2. npm -v: 5.0.3
  3. yarn --version: 0.27.5

Then, specify:

  1. Operating system: Windows 7

Steps to Reproduce

  1. Enable a proxy applied to all internet connections (Unfortunately, I don't know details, I just work on this system)
  2. Make sure your local yarn config is empty.
  3. Execute yarn config set proxy <your proxy here> and yarn config set http-proxy <your proxy here>
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions