summaryrefslogtreecommitdiff
path: root/deps/npm/lib/cache/get-stat.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/cache/get-stat.js')
-rw-r--r--deps/npm/lib/cache/get-stat.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/npm/lib/cache/get-stat.js b/deps/npm/lib/cache/get-stat.js
index 913f5af85..372a86d61 100644
--- a/deps/npm/lib/cache/get-stat.js
+++ b/deps/npm/lib/cache/get-stat.js
@@ -24,7 +24,9 @@ module.exports = function getCacheStat (cb) {
}
function makeCacheDir (cb) {
- if (!process.getuid) return mkdir(npm.cache, cb)
+ if (!process.getuid) return mkdir(npm.cache, function (er) {
+ return cb(er, {})
+ })
var uid = +process.getuid()
, gid = +process.getgid()