Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

178
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda