{"action":"opened","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3380","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3380/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3380/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3380/events","html_url":"https://github.com/ember-cli/ember-cli/issues/3380","id":59182263,"number":3380,"title":"Proposal: add option to have git/bower use local caches only","user":{"login":"eoinkelly","id":599867,"avatar_url":"https://avatars.githubusercontent.com/u/599867?v=3","gravatar_id":"","url":"https://api.github.com/users/eoinkelly","html_url":"https://github.com/eoinkelly","followers_url":"https://api.github.com/users/eoinkelly/followers","following_url":"https://api.github.com/users/eoinkelly/following{/other_user}","gists_url":"https://api.github.com/users/eoinkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/eoinkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eoinkelly/subscriptions","organizations_url":"https://api.github.com/users/eoinkelly/orgs","repos_url":"https://api.github.com/users/eoinkelly/repos","events_url":"https://api.github.com/users/eoinkelly/events{/privacy}","received_events_url":"https://api.github.com/users/eoinkelly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-27T02:53:46Z","updated_at":"2015-02-27T02:53:46Z","closed_at":null,"body":"There are a number of cli commands that depend on `npm` and `bower` which currently do not work properly without Internet access e.g. `new`, `init`, `addon`, `install`. \r\n\r\nI think it would be great to have something like an `--offline` option to these commands that would instruct bower and git to use their local caches rather than remote repositories. Currently:\r\n\r\n* `bower` commands accept an `--offline` flag which does what we need\r\n* `npm` is [discussing a similar flag](https://github.com/npm/npm/issues/2568) but in the meantime `npm install foo bar --cache-min 99999999` appears to work.\r\n\r\nThis would make `ember-cli` more usable in situations with no/bad/expensive Internet. I am happy to attempt a PR for this if it something that the core team is interested in exploring further."}}