diff options
Diffstat (limited to 'deps/npm/lib/cache.js')
-rw-r--r-- | deps/npm/lib/cache.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/deps/npm/lib/cache.js b/deps/npm/lib/cache.js index 357063551d4..b5a9fae0e49 100644 --- a/deps/npm/lib/cache.js +++ b/deps/npm/lib/cache.js @@ -300,8 +300,12 @@ function add (args, where, cb) { case "git": addRemoteGit(p.spec, false, cb) break - case "github": - maybeGithub(p.spec, cb) + case "hosted": + if (p.hosted.type === "github") { + maybeGithub(p.rawSpec, cb) + } else { + addRemoteGit(p.spec, false, cb) + } break default: if (p.name) return addNamed(p.name, p.spec, null, cb) |