From fcad5df6bf3d23e9048e1cdd3e5100ae808ec415 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 4 Nov 2020 22:58:40 +0200 Subject: [PATCH] Install npm plugins with --verbose This should allow us to catch several errors that NPM simply swallows when not using --verbose. Yeah, I don't know either. --- src/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins.js b/src/plugins.js index 7ee9fce..0537de5 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -17,7 +17,7 @@ const pluginSources = { console.log(`Installing ${plugins.length} plugins from NPM...`); let stderr = ""; - const npmProcess = childProcess.spawn("npm", ["install", "--no-save", ...plugins], { cwd: process.cwd() }); + const npmProcess = childProcess.spawn("npm", ["install", "--verbose", "--no-save", ...plugins], { cwd: process.cwd() }); npmProcess.stderr.on("data", data => { stderr += String(data) }); npmProcess.on("close", code => { if (code !== 0) {