Hi !
I am really gloing bananas here. I got several other MMM-modules running in my Ubuntu machine, but MMM-NOAA just won’t start. I get, depending on how I start MM :
node serveronly
Starting MagicMirror: v2.3.1
Loading config ...
Loading module helpers ...
WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
Loading module helpers ...
Whoops! There was an uncaught exception...
[SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode]
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
Or
npm start
> magicmirror@2.3.1 start /home/ranix/MagicMirror
> sh run-start.sh
npm ERR! Linux 4.13.0-43-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! magicmirror@2.3.1 start: `sh run-start.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.3.1 start script 'sh run-start.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the magicmirror package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh run-start.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs magicmirror
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls magicmirror
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/ranix/MagicMirror/npm-debug.log
I did not get any issues when running npm install, and as mentioned above, no issues with other modules.
npm run config:check
runs ok and I even removed my MM-instalaltion, reinstalled it and I tried a minimal config.js file like this :
var config = {
address: "0.0.0.0",
port: 8070,
ipWhitelist: [],
language: "en",
timeFormat: 24,
units: "metric",
modules: [
{
module: 'MMM-NOAA',
position: 'top_center',
config:{
apiKey: '----',
airKey: '----',
},
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
And it just shows the errors as listed above.
Is there anyone who can help me figure out what’s going south here before I have to give up ?
Cheers & TIA !
/T