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/install.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js
index 7e0fcfc1b..9cda3e26a 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -33,7 +33,7 @@ function registryInstall (pkglist, cb) {
// it's helpful to know what we have already
if (!installedPackages) return readInstalled([], function (er, data) {
if (er) return cb(er)
- installedPackages = data
+ installedPackages = data || {}
registryInstall(pkglist, cb)
})