Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

180
Vistas
Handle the npm start script callback

Is there a way of handling the execa npm package callback. I have a Listr task that is supposed to start the project in background, however it freezes the console and the only way to unfreeze it is to Ctrl + Z. Are there any ways of running the script in background?

import execa from 'execa';

async function startProject() {
  const result = execa('npm', ['start']);

  if (!result) {
    return Promise.reject(new Error('Failed to start the project automatically!'));
  }
}

module.exports = startProject;
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda