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

742
Views
npm concurrently error? when running both frontend and backend together?
"scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "server": "nodemon backend/server.js",
    "client": "npm start --prefix frontend",
    "dev": "concurrently \"npm run server\" \"npm run client\""
  }

here's my scripts for the package.json file that's outside the frontend and backend folders (in the root folder). and when I run the command npm run dev it doesn't work for some reason. note that npm run server and npm run client work prefectly but the issue is when I run the command npm run dev which has the concurrently in it, I don't know what's the issue, is there something I can do to fix this? here's the error message that I get:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ecommerce_shop@1.0.0 dev: `concurrently "npm run server" "npm run client"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ecommerce_shop@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2021-01-29T18_24_43_756Z-debug.log

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Usually, npm ELIFECYCLE error means that your npm project installation is corrupted.

Try the following, taken from this other SO question:

  1. Run npm cache clean --force or
  2. delete node_modules folder
  3. delete package-lock.json file
  4. npm install

Also to make sure you are using concurrently from your local installation and not your global one, I suggest appending npx to it:

    "dev": "npx concurrently \"npm run server\" \"npm run client\""
over 4 years ago · Santiago Trujillo Report
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!