if (command.status !== 0) { console.log(command.error); console.log(chalk.bold.yellow('Warn: ') + 'Error with npm install');
if (command.status !== 0) { console.log(command.error); console.log(chalk.bold.yellow('Warn: ') + 'Error with npm install');
function runDocker(...args) { let result = child_process.spawnSync("docker", args, { encoding: 'utf8' }); if (result.status !== 0) { throw new Error(`Docker died running ${args.join(' ')}: ${result.stderr}`); } return result.stdout; }
cli.withHugo(options, function(err, hugoPath) { if (err) { console.error('failed to grab hugo :-('); console.error(err); process.exit(1); } process.exit(spawnSync(hugoPath, args, { stdio: 'inherit' }).status); });
function runSync(range, options) { var fail = Boolean(options && options.fail) var result = spawnIfNodeVersionSatisfies.sync( range, process.execPath, [fail ? NGJS_FILE : OKJS_FILE] ) return result && { exitCode: result.status, stdout: result.stdout.toString(), stderr: result.stderr.toString(), } }
_runJsdoc () { const toSpawnArgs = require('object-to-spawn-args') const jsdocArgs = toSpawnArgs(this.jsdocOptions) .concat([ '-X' ]) .concat(this.options.source ? this.tempFile.path : this.inputFileSet.files) jsdocArgs.unshift(this.jsdocPath) const spawnSync = require('child_process').spawnSync const result = spawnSync('node', jsdocArgs, { encoding: 'utf-8', maxBuffer: 20 * 1024 * 1024 // 20Mb }) const explainOutput = this.verifyOutput(result.status, result) if (this.options.cache) { this.cache.writeSync(this.cacheKey, explainOutput) } return explainOutput }
Object.defineProperty(exports, 'opensslCli', { get: function () { if (opensslCli !== null) return opensslCli; if (process.config.variables.node_shared_openssl) { // use external command opensslCli = 'openssl'; } else { // use command built from sources included in Node.js repository opensslCli = path.join(path.dirname(process.execPath), 'openssl-cli'); } if (exports.isWindows) opensslCli += '.exe'; var opensslCmd = spawnSync(opensslCli, ['version']); if (opensslCmd.status !== 0 || opensslCmd.error !== undefined) { // openssl command cannot be executed opensslCli = false; } return opensslCli; }, enumerable: true });
dockerProcess.on("close", (code) => { fse.removeSync(dockerContextDir); if (code === 0 && argv.push) { if (tags.length === 0) { console.error("Can not push an image without a tag."); process.exit(1); } // Stop if there's a code !== 0 tags.every((tag) => { const process = childProcess.spawnSync( "docker", ["push", tag], { stdio: "inherit" } ); code = process.status; return code === 0; }); } process.exit(code); });
if (gradleVersion.status === 0) { gradleCommand = 'gradle'
fs.writeFileSync('.gitignore', gitIgnore); const npm = child_process.spawnSync('npm', ['install'], {stdio: 'inherit'}); if (npm.status) die('skale create error: npm install failed');
if (spawnSync(execPath, args, { stdio: 'inherit' }).status) { const err = new Error('At least one test failed :('); err.showStack = false;
if (proc.status !== 0) { console.error(`\`${command} ${args.join(' ')}\` failed`); return;
function runDocker(...args) { let result = child_process.spawnSync("docker", args, { encoding: 'utf8' }); if (result.status !== 0) { throw new Error(`Docker died running ${args.join(' ')}: ${result.stderr}`); } return result.stdout; }