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
parent
2629313445
commit
fcad5df6bf
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue