Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #2832
Closed
Open
Issue created Jul 21, 2017 by Administrator@rootContributor

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

  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.

Assignee
Assign to
Time tracking