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

410
Views
nodejs program does not find server.js file when run server.js file and when I ran it directly, it make me a spelling mistake?

I am making a Nodejs file following this tutorial

https://www.bezkoder.com/react-node-express-mysql/

and here is my code

https://github.com/anhquanjp/problemreact1

My problem is, when I ran the code node server.js at step Run the Node.js Express Server , it said to me that I had this error :

node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '/Users/anhbui/Documents/React + Node.js + Express + MySQL 
example/nodejs-express-sequelize-mysql/server.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

When I got in the folder roots to run the server.js, it said to me that I have this error :

SyntaxError: Unexpected token ')'
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1027:15)
at Module._compile (node:internal/modules/cjs/loader:1063:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47

But, I think that my server.js is not have a spelling mistake like this. Maybe because some another mistakes ?

Could you please see my code and give me some ideas ? Thank you very much for your time.

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!