Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module './router' #78

Open
neo3689 opened this issue Dec 31, 2021 · 1 comment
Open

Cannot find module './router' #78

neo3689 opened this issue Dec 31, 2021 · 1 comment

Comments

@neo3689
Copy link

neo3689 commented Dec 31, 2021

hey,
really new to this stuff but did a bit in school, also starting uni so really into it haha

so i downloaded node.js then ran the install.bat file and installed the package.json which installed successfully but then ran the run file and it says this,
C:\Users\james\Desktop>node app.js
node:internal/modules/cjs/loader:936
throw e
Error: Cannot find module './router'
Require stack:

  • C:\Users\james\Desktop\app.js
    ←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)←[39m
    ←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m
    ←[90m at Module.require (node:internal/modules/cjs/loader:999:19)←[39m
    ←[90m at require (node:internal/modules/cjs/helpers:102:18)←[39m
    at Object. (C:\Users\james\Desktop\app.js:2:24)
    ←[90m at Module._compile (node:internal/modules/cjs/loader:1097:14)←[39m
    ←[90m at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)←[39m
    ←[90m at Module.load (node:internal/modules/cjs/loader:975:32)←[39m
    ←[90m at Function.Module._load (node:internal/modules/cjs/loader:822:12)←[39m
    ←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m {
    code: ←[32m'MODULE_NOT_FOUND'←[39m,
    requireStack: [ ←[32m'C:\Users\james\Desktop\app.js'←[39m ]
    }

Node.js v17.3.0

what do i do from here.

thanks

@ghost
Copy link

ghost commented Jan 3, 2022

re-download entire repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant