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

Cannot find module 'request' #13

Open
lubars opened this issue Apr 7, 2022 · 0 comments
Open

Cannot find module 'request' #13

lubars opened this issue Apr 7, 2022 · 0 comments

Comments

@lubars
Copy link

lubars commented Apr 7, 2022

Got the following errors when trying to build the app:

Error: Cannot find module 'request'
Require stack:
- C:\okta-api-center-master\routes.js
- C:\okta-api-center-master\app.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:\okta-api-center-master\routes.js:8:15)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157: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:\\okta-api-center-master\\routes.js',
    'C:\\okta-api-center-master\\app.js'
  ]
} 

Was able to work around this by adding the following dependency to packages.json:

    "request": "^2.88.2"
@lubars lubars changed the title avoiding app restart Cannot find module 'request' Apr 8, 2022
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

1 participant