Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'express' #83

Open
jonydebu opened this issue Jul 17, 2022 · 3 comments
Open

Error: Cannot find module 'express' #83

jonydebu opened this issue Jul 17, 2022 · 3 comments

Comments

@jonydebu
Copy link

jonydebu commented Jul 17, 2022

Hi , some one can help please ?
Thanks .

`` Node.js v18.6.0

C:\Users\Jony\web-api-auth-examples\authorization_code>node app.js
node:internal/modules/cjs/loader:959
throw err;
^

Error: Cannot find module 'express'
Require stack:

  • C:\Users\Jony\web-api-auth-examples\authorization_code\app.js
    ←[90m at Module._resolveFilename (node:internal/modules/cjs/loader:956:15)←[39m
    ←[90m at Module._load (node:internal/modules/cjs/loader:804:27)←[39m
    ←[90m at Module.require (node:internal/modules/cjs/loader:1022:19)←[39m
    ←[90m at require (node:internal/modules/cjs/helpers:102:18)←[39m
    at Object. ←[90m(C:\Users\Jony\web-api-auth-examples\authorization_code\←[39mapp.js:10:15←[90m)←[39m
    ←[90m at Module._compile (node:internal/modules/cjs/loader:1120:14)←[39m
    ←[90m at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)←[39m
    ←[90m at Module.load (node:internal/modules/cjs/loader:998:32)←[39m
    ←[90m at Module._load (node:internal/modules/cjs/loader:839:12)←[39m
    ←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m {
    code: ←[32m'MODULE_NOT_FOUND'←[39m,
    requireStack: [
    ←[32m'C:\Users\Jony\web-api-auth-examples\authorization_code\app.js'←[39m
    ]
    }

``

@marcosknudsen
Copy link

Did you try this?
#23 (comment)

@DoganM95
Copy link

you are probably just missing the npm package.
Start a powershell session in the project directory and run the command npm install.
you should see how node package manager installs express

@avnish-kt
Copy link

npm install should resolve it but if it's just for express you can also try npm install express

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants