diff options
Diffstat (limited to 'lib/install/action')
-rw-r--r-- | lib/install/action/finalize.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install/action/finalize.js b/lib/install/action/finalize.js index ba38e602f..ded2350df 100644 --- a/lib/install/action/finalize.js +++ b/lib/install/action/finalize.js @@ -90,6 +90,6 @@ module.exports = function (staging, pkg, log) { module.exports.rollback = function (top, staging, pkg, next) { const requested = pkg.package._requested || getRequested(pkg) - if (requested.type === 'directory') return next() + if (requested && requested.type === 'directory') return next() gentlyRm(pkg.realpath, false, top, next) } |