From 9395ed14f79cc099b80419bc45d6fe2016ef0c32 Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Tue, 22 Dec 2015 14:23:24 -0600 Subject: [PATCH] chore(gulp-publish): convert spawn stream to string if it's not --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index fc7af3bc96..ef5dbe06a4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -429,11 +429,11 @@ gulp.task('publish', ['src'], function(done){ var npmCmd = spawn('npm', ['publish', './' + distDir]); npmCmd.stdout.on('data', function (data) { - console.log(data); + console.log(data.toString()); }); npmCmd.stderr.on('data', function (data) { - console.log('npm err: ' + data); + console.log('npm err: ' + data.toString()); }); npmCmd.on('close', function() {