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

205
Views
I am getting error message when I run the application file

I am having trouble running the server file in this solution . removed the other solution that was in the same directory Did npm install for passport. help please I am not sure what else to look at

"C:\Program Files\nodejs\node.exe" -r dotenv/config C:\Users\name\CSC3916_HW2\server.js
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'passport-http'
Require stack:
- C:\Users\name\CSC3916_HW2\auth.js
- C:\Users\name\CSC3916_HW2\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 Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\name\CSC3916_HW2\auth.js:3:21)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\name\\CSC3916_HW2\\auth.js',
    'C:\\Users\\name\\CSC3916_HW2\\server.js'
  ]
}

Process finished with exit code 1

Server config settings

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Based on the below comment "Are you sure you have installed the necessary dependency passport-http? – Terry 1 min ago"

I installed npm passport-http that resolved it

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!