Set Up Passport -Error: Cannot find module 'express-session'

Tell us what’s happening:
I’m unable to run my project after requiring express-session. I’ve been going over this all day and I can’t figure out what I’ve done wrong. Any help would be great.

Here is my output:

 npm start

> fcc-advanced-node-and-express@0.0.1 start /home/runner/boilerplate-advancednode
> node server.js

  throw err;

Error: Cannot find module 'express-session'
Require stack:
- /home/runner/boilerplate-advancednode/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/runner/boilerplate-advancednode/server.js:7:17)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
  requireStack: [ '/home/runner/boilerplate-advancednode/server.js' ]
npm ERR! errno 1
npm ERR! fcc-advanced-node-and-express@0.0.1 start: `node server.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fcc-advanced-node-and-express@0.0.1 start 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/runner/.npm/_logs/2021-08-11T21_27_56_051Z-debug.log
exit status 1

Your project link(s)


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36

Challenge: Set up Passport

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.