summaryrefslogtreecommitdiff
path: root/deps/npm/lib/view.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/view.js')
-rw-r--r--deps/npm/lib/view.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/deps/npm/lib/view.js b/deps/npm/lib/view.js
index 733cf60e5f..2f06aea624 100644
--- a/deps/npm/lib/view.js
+++ b/deps/npm/lib/view.js
@@ -300,9 +300,7 @@ function printData (data, name, cb) {
log.disableProgress()
// print directly to stdout to not unnecessarily add blank lines
- process.stdout.write(msg)
-
- cb(null, data)
+ process.stdout.write(msg, () => cb(null, data))
}
function cleanup (data) {
if (Array.isArray(data)) {