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

752
Views
npm simultáneamente error? cuando se ejecutan tanto el frontend como el backend juntos?
"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\"" }

aquí están mis scripts para el archivo package.json que está fuera de las carpetas frontend y backend (en la carpeta raíz). y cuando ejecuto el comando npm run dev no funciona por alguna razón. tenga en cuenta que npm run server y npm run client funcionan perfectamente, pero el problema es cuando ejecuto el comando npm run dev que tiene concurrently , no sé cuál es el problema, ¿hay algo que pueda hacer para solucionar esto? aquí está el mensaje de error que me sale:

 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

Por lo general, el error npm ELIFECYCLE significa que la instalación de su proyecto npm está dañada.

Pruebe lo siguiente, tomado de esta otra pregunta SO :

  1. Ejecute npm cache clean --force o
  2. eliminar la carpeta node_modules
  3. eliminar el archivo package-lock.json
  4. npm install

Además, para asegurarse de que está utilizando concurrently desde su instalación local y no desde la global, sugiero agregarle npx :

 "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!