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

204
Views
i am getting this error "Cannot find module '/var/app/current/src/server.js'. Please verify that the package.json has a valid "main" entry"

I am getting this error when i deploy a node project to Elastic Beanstalk after that i changed this code

main: src/server.js 

to

main: server.js

in the package.json file then i deleted every src keyword from the whole file. now the amazon relational database service RDS gets connected, the server runs for a moment and they get disconnected as i can see in the log. this is what's in the folder i try to upload

config
controllers
.npmrc
aws.js
aws.js.map
package.json
sequalize.js
sequalize.js.map
server.js
server.js.map

these are the inbound rules of RDS

https://i.stack.imgur.com/XUSHF.png

so what do you suggest?

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!