Read the statement by Michael Teeuw here.
how to update my MM
-
@rikko14 From this output, their is one module that uses the request module that is not listed. In that module folder you now need to go and install request using the steps that Sam provided you.
-
@mumblebaj i do this :
pi@raspberrypi:~ $ find ~/MagicMirror/modules/* -type d -name request /home/pi/MagicMirror/modules/MMM-MovieListings/node_modules/request /home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request /home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/npm/node_modules/request pi@raspberrypi:~ $ cd ~/MagicMirror/modules/MMM-NowPlayingOnSpotify pi@raspberrypi:~/MagicMirror/modules/MMM-NowPlayingOnSpotify $ ls package.json package.json pi@raspberrypi:~/MagicMirror/modules/MMM-NowPlayingOnSpotify $ npm init -y Wrote to /home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/package.json: { "name": "mmm-nowplayingonspotify", "version": "1.0.0", "description": "A module for MagicMirror 2 displaying the currently playing song on Spotify.", "repository": { "type": "git", "url": "git+https://github.com/raywo/MMM-NowPlayingOnSpotify.git" }, "keywords": [ "magic mirror", "magic mirror 2", "smart mirror", "spotify", "module" ], "author": "raywo <ray@skillbird.de> (https://github.com/raywo)", "contributors": [ "https://github.com/raywo/MMM-NowPlayingOnSpotify/graphs/contributors" ], "license": "MIT", "bugs": { "url": "https://github.com/raywo/MMM-NowPlayingOnSpotify/issues" }, "homepage": "https://github.com/raywo/MMM-NowPlayingOnSpotify", "engines": { "node": ">=7" }, "dependencies": { "cookie-parser": "1.4.3", "express": "~4.16.0", "moment-duration-format": "^2.2.2", "npm": "^5.7.1", "querystring": "~0.2.0", "request": "^2.83.0", "request-promise-native": "^1.0.5", "body-parser": "^1.18.2" }, "main": "MMM-NowPlayingOnSpotify.js", "devDependencies": {}, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" } } pi@raspberrypi:~/MagicMirror/modules/MMM-NowPlayingOnSpotify $ cd ~/MagicMirror/modules/MMM-MovieListings pi@raspberrypi:~/MagicMirror/modules/MMM-MovieListings $ ls package.json package.json pi@raspberrypi:~/MagicMirror/modules/MMM-MovieListings $ npm init -y Wrote to /home/pi/MagicMirror/modules/MMM-MovieListings/package.json: { "name": "mmm-movielistings", "version": "1.0.0", "description": "MagicMirror module for current movie listing playing in theaters", "main": "MMM-MovieListings.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Christian Jens", "license": "MIT", "dependencies": { "request": "^2.81.0" }, "devDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/Tueti/MMM-MovieListings.git" }, "keywords": [], "bugs": { "url": "https://github.com/Tueti/MMM-MovieListings/issues" }, "homepage": "https://github.com/Tueti/MMM-MovieListings#readme" } pi@raspberrypi:~/MagicMirror/modules/MMM-MovieListings $
but the problem remains the same (black screen et Electron problem)
-
any solutions ?
-
@rikko14 You are missing the steps the sdeitwel provided. If the pacskage.json exists then you DO NOT run the
npm init -y
command. You must only run thenpm install request
command. You would or should have noticed that MMM-MovieListings already has request installed. -
@rikko14 Just a final hint. The only module that seems to have a problem is MMM-soccer. You can check that module to see if it has a package.json. If it does then DO NOT run the
npm init -y
. However, looking at the MMM-soccer module on Github it has been updated to use node-fetch. You probably need to do agit pull && npm install
in the MMM-soccer module folder to get the latest version of the module.Then start the mirror with pm2.
pm2 start mm
or however you start it with pm2. thenpm2 stop
and thenpm2 log --lines 100
and post the log output if you are still experiencing the black screen.