We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cb8432 commit 9aac984Copy full SHA for 9aac984
lib/install/action/finalize.js
@@ -90,6 +90,6 @@ module.exports = function (staging, pkg, log) {
90
91
module.exports.rollback = function (top, staging, pkg, next) {
92
const requested = pkg.package._requested || getRequested(pkg)
93
- if (requested.type === 'directory') return next()
+ if (requested && requested.type === 'directory') return next()
94
gentlyRm(pkg.realpath, false, top, next)
95
}
0 commit comments