summaryrefslogtreecommitdiff
path: root/deps/npm/lib/install.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/install.js')
-rw-r--r--deps/npm/lib/install.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/deps/npm/lib/install.js b/deps/npm/lib/install.js
index a4cf2b186d..378ada7b05 100644
--- a/deps/npm/lib/install.js
+++ b/deps/npm/lib/install.js
@@ -26,6 +26,7 @@ install.usage = usage(
'\nnpm install [<@scope>/]<pkg>@<tag>' +
'\nnpm install [<@scope>/]<pkg>@<version>' +
'\nnpm install [<@scope>/]<pkg>@<version range>' +
+ '\nnpm install <alias>@npm:<name>' +
'\nnpm install <folder>' +
'\nnpm install <tarball file>' +
'\nnpm install <tarball url>' +
@@ -877,9 +878,6 @@ Installer.prototype.printInstalledForHuman = function (diffs, auditResult) {
report += ' in ' + ((Date.now() - this.started) / 1000) + 's'
output(report)
- if (auditResult) {
- audit.printInstallReport(auditResult)
- }
function packages (num) {
return num + ' package' + (num > 1 ? 's' : '')
@@ -910,6 +908,10 @@ Installer.prototype.printInstalledForHuman = function (diffs, auditResult) {
if (printFundingReport.length) {
output(printFundingReport)
}
+
+ if (auditResult) {
+ return audit.printInstallReport(auditResult)
+ }
}
Installer.prototype.printInstalledForJSON = function (diffs, auditResult) {