Problem at launch of the app

ThomasHg8866
Excursionist
34 2 0

I dont know why but since 1 day when i try to start the server i have this error :

> DDCModule@1.0.0 dev
> node server.js

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

Error: Cannot find module 'http-errors'
Require stack:
- /Users/Thomas/Documents/developpement/DDCModule/node_modules/koa/lib/application.js
- /Users/Thomas/Documents/developpement/DDCModule/server.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:15)
    at Function.Module._load (node:internal/modules/cjs/loader:763:27)
    at Module.require (node:internal/modules/cjs/loader:991:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/Users/Thomas/Documents/developpement/DDCModule/node_modules/koa/lib/application.js:7:1)
    at Module._compile (node:internal/modules/cjs/loader:1102:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)
    at Module.load (node:internal/modules/cjs/loader:967:32)
    at Function.Module._load (node:internal/modules/cjs/loader:807:14)
    at Module.require (node:internal/modules/cjs/loader:991:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/Thomas/Documents/developpement/DDCModule/node_modules/koa/lib/application.js',
    '/Users/Thomas/Documents/developpement/DDCModule/server.js'
  ]
}
0 Likes
policenauts
Trailblazer
185 9 42

What if you try installing this module? https://www.npmjs.com/package/http-errors

ThomasHg8866
Excursionist
34 2 0

i already try this but that do anything. But my problem is solve.

It's my package-lock.json who have lost some dependencies.

0 Likes