D:\Users\ABD\Desktop\app-node>npm run app
> test-node@1.0.0 app D:\Users\ABD\Desktop\app-node
> nodemon app.js
[nodemon] 2.0.4
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node app.js
internal/modules/cjs/loader.js:969
throw err;
^
Error: Cannot find module './models/User'
Require stack:
- D:\Users\ABD\Desktop\app-node\routes\auth.routes.js
- D:\Users\ABD\Desktop\app-node\app.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
at Function.Module._load (internal/modules/cjs/loader.js:842:27)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (D:\Users\ABD\Desktop\app-node\routes\auth.routes.js:7:14)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (D:\Users\ABD\Desktop\app-node\app.js:7:22)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'D:\\Users\\ABD\\Desktop\\app-node\\routes\\auth.routes.js',
'D:\\Users\\ABD\\Desktop\\app-node\\app.js'
]
}
[nodemon] app crashed - waiting for file changes before starting...