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 running nodemon #29

Open
abhijithabhiakl opened this issue May 24, 2023 · 2 comments
Open

Error running nodemon #29

abhijithabhiakl opened this issue May 24, 2023 · 2 comments

Comments

@abhijithabhiakl
Copy link

My terminal is throwing out some random chunk of error, I don't quite understand it, so can anyone help fix it ? here it is:

┌──(skittlesjnr㉿kalisk)-[~/Documents/KTUAPI/api]
└─$ npm run dev

ktu@1.0.0 dev
nodemon src/index.js --exec babel-node

[nodemon] 1.19.4
[nodemon] to restart at any time, enter rs
[nodemon] watching dir(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting babel-node src/index.js
node:internal/modules/cjs/loader:1042
throw err;
^

Error: Cannot find module '../../config/firebase.json'
Require stack:

  • /home/skittlesjnr/Documents/KTUAPI/api/src/core/firebase.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/utils/notifications.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/utils/redis.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/controllers/studentDetails.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/routes/index.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/core/app.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
    at Function.Module._load (node:internal/modules/cjs/loader:885:27)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object. (/home/skittlesjnr/Documents/KTUAPI/api/src/core/firebase.js:4:24)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at loader (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions. [as .js] (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Function.Module._load (node:internal/modules/cjs/loader:922:12)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object. (/home/skittlesjnr/Documents/KTUAPI/api/src/utils/notifications.js:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at loader (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions. [as .js] (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Function.Module._load (node:internal/modules/cjs/loader:922:12)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object. (/home/skittlesjnr/Documents/KTUAPI/api/src/utils/redis.js:3:1)
    at Module._compile (node:internal/modules/cjs/loader:1218:14) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/skittlesjnr/Documents/KTUAPI/api/src/core/firebase.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/utils/notifications.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/utils/redis.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/controllers/studentDetails.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/routes/index.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/core/app.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/index.js'
    ]
    }

Node.js v18.13.0
[nodemon] app crashed - waiting for file changes before starting...

@shamin
Copy link
Collaborator

shamin commented May 25, 2023

@abhijithabhiakl This project uses firebase so you will need to create a firebase project and add the firebase json file to the project inorder for it to work properly.

@amal480
Copy link

amal480 commented Jan 30, 2024

My terminal is throwing out some random chunk of error, I don't quite understand it, so can anyone help fix it ? here it is:

┌──(skittlesjnr㉿kalisk)-[~/Documents/KTUAPI/api] └─$ npm run dev

ktu@1.0.0 dev
nodemon src/index.js --exec babel-node

[nodemon] 1.19.4 [nodemon] to restart at any time, enter rs [nodemon] watching dir(s): . [nodemon] watching extensions: js,mjs,json [nodemon] starting babel-node src/index.js node:internal/modules/cjs/loader:1042 throw err; ^

Error: Cannot find module '../../config/firebase.json' Require stack:

  • /home/skittlesjnr/Documents/KTUAPI/api/src/core/firebase.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/utils/notifications.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/utils/redis.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/controllers/studentDetails.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/routes/index.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/core/app.js
  • /home/skittlesjnr/Documents/KTUAPI/api/src/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
    at Function.Module._load (node:internal/modules/cjs/loader:885:27)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object. (/home/skittlesjnr/Documents/KTUAPI/api/src/core/firebase.js:4:24)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at loader (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions. [as .js] (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Function.Module._load (node:internal/modules/cjs/loader:922:12)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object. (/home/skittlesjnr/Documents/KTUAPI/api/src/utils/notifications.js:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at loader (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions. [as .js] (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Function.Module._load (node:internal/modules/cjs/loader:922:12)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object. (/home/skittlesjnr/Documents/KTUAPI/api/src/utils/redis.js:3:1)
    at Module._compile (node:internal/modules/cjs/loader:1218:14) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/skittlesjnr/Documents/KTUAPI/api/src/core/firebase.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/utils/notifications.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/utils/redis.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/controllers/studentDetails.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/routes/index.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/core/app.js',
    '/home/skittlesjnr/Documents/KTUAPI/api/src/index.js'
    ]
    }

Node.js v18.13.0 [nodemon] app crashed - waiting for file changes before starting...

Hey did you fix this error?

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

3 participants