You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
←[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
The text was updated successfully, but these errors were encountered: