diff options
Diffstat (limited to 'lib/install.js')
-rw-r--r-- | lib/install.js | 2 |
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) }) |