0

I am getting this error and I am attaching a picture

internal/modules/cjs/loader.js:983 throw err; ^

Error: Cannot find module

enter image description here

mplungjan
  • 169,008
  • 28
  • 173
  • 236
  • Please visit [help], take [tour] to see what and [ask]. Do some research, search for related topics on SO; if you get stuck, post a [mcve] of your attempt, noting input and expected output. Post CODE. Not PICTURES of CODE – mplungjan May 05 '20 at 06:34
  • Likely dupe: https://stackoverflow.com/questions/53545800/internal-modules-cjs-loader-js582-throw-err – mplungjan May 05 '20 at 06:38
  • I don't disagree with posting codes but I think the picture attached here did help to pin point the issue. – FanoFN May 05 '20 at 09:01

1 Answers1

2

Go to your console, type in cd routes

After that type node app.js

You are in the wrong directory

Personal Opinion: Usually the app.js is not inside the routes folder?

bill.gates
  • 14,145
  • 3
  • 19
  • 47