diff --git a/deps/npm/lib/view.js b/deps/npm/lib/view.js index 733cf60e5f1e98..2f06aea624dc03 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)) {