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 'passport-oauth2-userinfo' #1

Open
ile opened this issue Apr 24, 2023 · 0 comments
Open

Error: Cannot find module 'passport-oauth2-userinfo' #1

ile opened this issue Apr 24, 2023 · 0 comments

Comments

@ile
Copy link

ile commented Apr 24, 2023

After npm install, when running npm start I get this:

$ npm start

> [email protected] start
> node ./bin/www

node:internal/modules/cjs/loader:1093
  throw err;
  ^

Error: Cannot find module 'passport-oauth2-userinfo'
Require stack:
- /home/ile/src/sc2/tmp3/todos-express-oauth2-userinfo/routes/auth.js
- /home/ile/src/sc2/tmp3/todos-express-oauth2-userinfo/app.js
- /home/ile/src/sc2/tmp3/todos-express-oauth2-userinfo/bin/www
    at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
    at Module._load (node:internal/modules/cjs/loader:934:27)
    at Module.require (node:internal/modules/cjs/loader:1157:19)
    at require (node:internal/modules/helpers:119:18)
    at Object.<anonymous> (/home/ile/src/sc2/tmp3/todos-express-oauth2-userinfo/routes/auth.js:3:30)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
    at Module.load (node:internal/modules/cjs/loader:1133:32)
    at Module._load (node:internal/modules/cjs/loader:972:12)
    at Module.require (node:internal/modules/cjs/loader:1157:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/ile/src/sc2/tmp3/todos-express-oauth2-userinfo/routes/auth.js',
    '/home/ile/src/sc2/tmp3/todos-express-oauth2-userinfo/app.js',
    '/home/ile/src/sc2/tmp3/todos-express-oauth2-userinfo/bin/www'
  ]
}

Node.js v19.8.1

Also this doesn't work:

$ npm i passport-oauth2-userinfo
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/passport-oauth2-userinfo - Not found
npm ERR! 404 
npm ERR! 404  'passport-oauth2-userinfo@*' is not in this registry.
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ile/.npm/_logs/2023-04-24T00_09_05_899Z-debug-0.log
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