Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/utils/read-installed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/read-installed.js b/lib/utils/read-installed.js
index 7751c701f..34cd666f7 100644
--- a/lib/utils/read-installed.js
+++ b/lib/utils/read-installed.js
@@ -19,7 +19,7 @@ function readInstalled (args, cb) {
return (showAll || args.indexOf(dir) !== -1) && dir.charAt(0) !== "."
})
// maybe nothing found
- if (!packages.length) cb(null, null)
+ if (!packages.length) cb(null, [])
var p = packages.length
, data = {}