I have successfully installed MM2 on my Ubuntu server, made sure that IP range of network is added to config.js and also made sure that port 8080 is open on Ubutu server.
When I try “npm run server” via SSH I get the following:
magicmirror@2.22.0 server
node ./serveronly
node:internal/modules/cjs/loader:959
throw err;
^
Error: Cannot find module ‘module-alias/register’
Require stack:
- /home/gideon/MagicMirror/js/app.js
- /home/gideon/MagicMirror/serveronly/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1022:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/gideon/MagicMirror/js/app.js:9:1)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1022:19) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/gideon/MagicMirror/js/app.js’,
‘/home/gideon/MagicMirror/serveronly/index.js’
]
}
Node.js v18.7.0
Any ideas?