console.log(command.error); console.log(chalk.bold.yellow('Warn: ') + 'Error with npm install');
function chooseAudioEncoder(players) { if (!players[0]) return null; var file = players.shift(); var s = ChildProc.spawnSync(file); return s.error ? chooseAudioEncoder(players) : file; }
/* * compiles the mpi.cpp file in the task_dir to mpi.out file * @param task_dir {String}: the directory of the task * @return {Object}: the result of the operation (errored or not) */ function compile(task_dir) { var mpi_src = task_dir + '/mpi.cpp'; var mpi_exe = task_dir + '/mpi.out'; var compilation = spawn('mpicc', [mpi_src, '-o', mpi_exe]); var status = { success: true }; if(compilation.error || compilation.stderr.length > 0) { status.success = false; status.error = compilation.stderr.toString(); } return status; }
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 });
/* * checks if mpi binaries {mpicc, mpiexec/mpirun} exist on the system * @return {Object}: {'exists': true/false, 'runner': 'mpirun'/'mpiexec'/undefined} */ function checkmpi() { var compiler = spawn('mpicc'); if(!compiler.error) { var run = spawn('mpirun'); if(!run.error) { return {exits: true, runner: 'mpirun'}; } else { var exec = spawn('mpiexec'); if(!exec.error) { return {exists: true, runner: 'mpiexec'}; } } } return {exists: false}; }