@sdetweil said in Cannot find module 'module-alias/register':
npm install
Thanks, yes that was very helpful. Helped indeed. However I also had to fix one module by deleting and pulling it again, but now it works fine. Thanks once more :)
@sdetweil said in Cannot find module 'module-alias/register':
npm install
Thanks, yes that was very helpful. Helped indeed. However I also had to fix one module by deleting and pulling it again, but now it works fine. Thanks once more :)
Hi,
I got FHEM up and running on my installation. Works as intended. However the configuration depends on your (hardware) setup. Some questions that come to my mind are:
Here’s my config, maybe it helps:
Within FHEM:
# Spiegel/MagicMirror
define MagicM FHEMWEB 8086 global
attr MagicM allowfrom 192.168.178.14
attr MagicM csrfToken none
attr MagicM room 99_System
Within Magic Mirror:
{
module: 'MMM-FHEM',
position: 'top_right',
config: {
host: '192.168.178.10',
port: '8086',
https: false,
devices: [
{ deviceName: 'Temp_Arbeitszimmer',
deviceReadings: [
{ name: 'temperature', icon: 'wi wi-thermometer', suffix: '°' }
],
},
{ deviceName: 'Temp_Wohnzimmer',
deviceReadings: [
{ name: 'temperature', icon: 'wi wi-thermometer', suffix: '°' }
],
},
{ deviceName: 'Temp_Draussen',
deviceReadings: [
{ name: 'temperature', icon: 'wi wi-thermometer', suffix: '°' }
],
},
],
}
},
Hi,
since two days now, I keep getting this error-message when (re)starting MagicMirror:
App threw an error during load
Error: Cannot find module 'module-alias/register'
at Module._resolveFilename (module.js:455:15)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:15:1)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'module-alias/register'
at Module._resolveFilename (module.js:455:15)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:15:1)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
On a regular base I make a git fetch etc. to make sure MagicMirror is up to date. This morning somehow it wouldn’t start anymore. That’s the error I get when manually starting via
cd ~/MagicMirror
DISPLAY=:0 npm start
Any idea how to fix this? … and even more: any idea what might have caused this?
Cheers :)
Hi,
I have a similar issue: after installing the module and adding it to the config.js I don’t see it on the screen. After a restart all other widgets are shown. I don’t even see an empty field or such where this widget should be shown :(
Am I missing anything maybe?
For the sake of debugging, I’m trying to access a publicly available FHEM instance.
{
module: 'MMM-FHEM',
position: 'top_bar',
config: {
host: 'http://fhem.waschto.eu',
port: '8083',
https: false,
devices: [
{ deviceName: 'FL_Temperatur',
deviceReadings: [
{ name: 'temperature', icon: 'wi wi-thermometer', suffix: '°' },
{ name: 'humidity', icon: 'wi wi-humidity', suffix: '%' },
],
}
]
}
}
Might I have made a mistake installing the dependencies? Is “sudo npm install underscore” or “request” not the right way to do it?