Visitar URL original
Error: Cannot find module 'express' · Issue #83 · spotify/web-api-examples · GitHub
Skip to content

Error: Cannot find module 'express' #83

Open

Description

@jonydebu

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
    ]
    }

``

Activity

  1. marcosknudsen commented on Aug 14, 2022

    @marcosknudsen

    Did you try this?
    #23 (comment)

  2. DoganM95 commented on Sep 16, 2022

    @DoganM95

    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

  3. avnish-kt commented on Jan 10, 2024

    @avnish-kt

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions