Skip to content

Commit 9aac984

Browse files
iarnazkat
authored andcommittedMay 31, 2017
finalize: Guard against being unable to compute _requested source
Credit: @iarna
1 parent 3cb8432 commit 9aac984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/install/action/finalize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ module.exports = function (staging, pkg, log) {
9090

9191
module.exports.rollback = function (top, staging, pkg, next) {
9292
const requested = pkg.package._requested || getRequested(pkg)
93-
if (requested.type === 'directory') return next()
93+
if (requested && requested.type === 'directory') return next()
9494
gentlyRm(pkg.realpath, false, top, next)
9595
}

0 commit comments

Comments
 (0)
Please sign in to comment.