0

I am trying to start two servers using nodemon.

"scripts": {
    "start": "node server.js && node serverpage.js"
  },

I installed nodemon correctly and when I try to execute it I get the following error:

Error: Cannot find module 'C:\Users\puppe\Desktop\alles\Login-Projekt\login.js'
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Now the thing is that I can start both servers independently with no problems but they're failing to start together. Any ideas?

MwamiTovi
  • 2,425
  • 17
  • 25
Taris
  • 27
  • 6

0 Answers0