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

278
Views
¿Qué significa [ERROR_MODULE_NOT_FOUND]?

Después de ejecutar "servidor nodemon", recibí este error:

 [nodemon] 2.0.15 [nodemon] to restart at any time, enter `rs` [nodemon] watching path(s): *.* [nodemon] watching extensions: js,mjs,json [nodemon] starting `node server index.js` internal/process/esm_loader.js:74 internalBinding('errors').triggerUncaughtException( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/brandonkim/Desktop/restaurant-reviews/backend/server.js' imported from /Users/brandonkim/Desktop/restaurant-reviews/backend/index.js at finalizeResolution (internal/modules/esm/resolve.js:271:11) at moduleResolve (internal/modules/esm/resolve.js:694:10) at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:805:11) at Loader.resolve (internal/modules/esm/loader.js:88:40) at Loader.getModuleJob (internal/modules/esm/loader.js:241:28) at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:72:40) at link (internal/modules/esm/module_job.js:71:36) { code: 'ERR_MODULE_NOT_FOUND' } [nodemon] app crashed - waiting for file changes before starting...

¿Qué significa esto? ¿Cómo lo soluciono? Simplemente estoy tratando de ejecutar el servidor para el backend de un sitio web.

Mi paquete.json es:

 { "name": "backend", "version": "1.0.0", "description": "", "main": "index.js", "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "body-parser": "^1.19.0", "bson": "^4.2.2", "cors": "^2.8.5", "dotenv": "^8.2.0", "express": "^4.17.1", "mongodb": "^3.6.4" } }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Eso es porque iniciaste la aplicación con node server index.js

ese comando ha sido reconocido como

node server.js index.js.

simplemente cámbialo a

node index o node index.js o nodemon index.js

Realmente agregar la extensión .JS es opcional

about 4 years ago · Juan Pablo Isaza 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!