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.
cshd
Dragory 2020-11-04 22:58:40 +02:00
parent 2629313445
commit fcad5df6bf
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ const pluginSources = {
console.log(`Installing ${plugins.length} plugins from NPM...`); console.log(`Installing ${plugins.length} plugins from NPM...`);
let stderr = ""; 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.stderr.on("data", data => { stderr += String(data) });
npmProcess.on("close", code => { npmProcess.on("close", code => {
if (code !== 0) { if (code !== 0) {