Git Product home page Git Product logo

api's Issues

Error running nodemon

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

[email protected] 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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.