Skip to content

Cannot install packages from github when offline #1925

Closed
@onlywei

Description

@onlywei

Do you want to request a feature or report a bug?
Not sure

What is the current behavior?
Without an internet connection, I get:

[1/4] 🔍  Resolving packages...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...

And then the install fails and tells me which github address it was trying to reach on the internet.

If the current behavior is a bug, please provide the steps to reproduce.
Just make a package.json with a github dependency, such as:

"nomnom": "douglasduteil/nomnom#next"

Install it via yarn while connected to the internet.
Then unplug your internet, delete node_modules dir, and try to yarn again.

What is the expected behavior?
I expect it to install all my packages from cache even while offline.

Please mention your node.js, yarn and operating system version.
Node 6.9.1 LTS, yarn 0.17.4, Mac OS X 10.11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions