diff options
author | Dylan Greene <dylang@gmail.com> | 2014-07-26 01:54:01 +0400 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-09-05 05:45:49 +0400 |
commit | c8eb928207b3545c9647bdb9f095624f5cb60290 (patch) | |
tree | 1ac11a7d065c3a5a428907de593db5da5c87a35d /lib | |
parent | 9fe98c4df54b752807151fc45b6bfd6076acffec (diff) |
when saving, using file://
Diffstat (limited to 'lib')
-rw-r--r-- | lib/install.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js index fc0d1ee0b..3c5e253b8 100644 --- a/lib/install.js +++ b/lib/install.js @@ -365,7 +365,8 @@ function save (where, installed, tree, pretty, hasArguments, cb) { } catch(er) {} - if (u && u.protocol || isLocal) w[1] = t.from + if (u && u.protocol) w[1] = t.from + if (isLocal) w[1] = 'file:///' + t.from return w }).reduce(function (set, k) { var rangeDescriptor = semver.valid(k[1], true) && |