Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

177
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!