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

code: 'MODULE_NOT_FOUND', #56

Open
gunmasterg9 opened this issue May 18, 2024 · 1 comment
Open

code: 'MODULE_NOT_FOUND', #56

gunmasterg9 opened this issue May 18, 2024 · 1 comment

Comments

@gunmasterg9
Copy link

sudo npm start

[email protected] start
node ./server/index.js

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

Error: Cannot find module 'express'
Require stack:

  • /home/admin/Downloads/pi-weather-station/server/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
    at Module._load (node:internal/modules/cjs/loader:975:27)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object. (/home/admin/Downloads/pi-weather-station/server/index.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/home/admin/Downloads/pi-weather-station/server/index.js' ]
    }

Node.js v18.19.0

@nolsen42
Copy link

Install express in npm

npm install express

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

2 participants