We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cb9102 commit e33bc08Copy full SHA for e33bc08
lib/install.js
@@ -761,7 +761,8 @@ Installer.prototype.printInstalled = function (cb) {
761
})
762
}
763
return Bluebird.try(() => {
764
- return this.auditSubmission && this.auditSubmission.catch(() => null)
+ if (!this.auditSubmission) return
765
+ return Bluebird.resolve(this.auditSubmission).timeout(10000).catch(() => null)
766
}).then((auditResult) => {
767
// maybe write audit report w/ hash of pjson & shrinkwrap for later reading by `npm audit`
768
if (npm.config.get('json')) {
0 commit comments