MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    v2.18.0 update gave black screen, then nothing.

    Scheduled Pinned Locked Moved Solved Troubleshooting
    73 Posts 4 Posters 25.8k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      Richard238
      last edited by Richard238

      MM said I was 122 commits behind.
      Ran the update script:

      bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
      

      Eeeeek, black screen! Searched forum, found this:
      https://forum.magicmirror.builders/topic/15240/black-screen/2?_=1641460034694

      Did as suggested:

      pi@magicmirror:~/MagicMirror $ npm run config:check
      
      
      > magicmirror@2.18.0 config:check
      > node js/check_config.js
      
      
      /home/pi/MagicMirror/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2359
      const require$1 = Module.createRequire((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('eslintrc.cjs', document.baseURI).href)));
                               ^
      
      TypeError: Module.createRequire is not a function
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2359:26)
          at Module._compile (internal/modules/cjs/loader.js:778:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
          at Module.load (internal/modules/cjs/loader.js:653:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
          at Function.Module._load (internal/modules/cjs/loader.js:585:3)
          at Module.require (internal/modules/cjs/loader.js:692:17)
          at require (internal/modules/cjs/helpers.js:25:18)
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/eslint/lib/cli-engine/cli-engine.js:33:5)
          at Module._compile (internal/modules/cjs/loader.js:778:30)
      

      https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

      pi@magicmirror:~/MagicMirror $ npm init -y

      Wrote to /home/pi/MagicMirror/package.json:
      
      {
        "name": "magicmirror",
        "version": "2.18.0",
        "description": "The open source modular smart mirror platform.",
        "main": "js/electron.js",
        "scripts": {
          "start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
          "start:dev": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js dev",
          "server": "node ./serveronly",
          "install": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error",
          "install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error",
          "postinstall": "npm run install-fonts && echo \"MagicMirror installation finished successfully! \n\"",
          "test": "NODE_ENV=test jest -i --forceExit",
          "test:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text jest -i --forceExit",
          "test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit",
          "test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --forceExit",
          "test:unit": "NODE_ENV=test jest --selectProjects unit -i --forceExit",
          "test:prettier": "prettier . --check",
          "test:js": "eslint 'js/**/*.js' 'modules/default/**/*.js' 'clientonly/*.js' 'serveronly/*.js' 'translations/*.js' 'vendor/*.js' 'tests/**/*.js' 'config/*' --config .eslintrc.json",
          "test:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json",
          "test:calendar": "node ./modules/default/calendar/debug.js",
          "config:check": "node js/check_config.js",
          "lint:prettier": "prettier . --write",
          "lint:js": "eslint 'js/**/*.js' 'modules/default/**/*.js' 'clientonly/*.js' 'serveronly/*.js' 'translations/*.js' 'vendor/*.js' 'tests/**/*.js' 'config/*' --config .eslintrc.json --fix",
          "lint:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json --fix",
          "lint:staged": "pretty-quick --staged",
          "prepare": "[ -f node_modules/.bin/husky ] && husky install || echo no husky installed."
        },
        "repository": {
          "type": "git",
          "url": "git+https://github.com/MichMich/MagicMirror.git"
        },
        "keywords": [
          "magic mirror",
          "smart mirror",
          "mirror UI",
          "modular"
        ],
        "author": "Michael Teeuw",
        "contributors": [
          "https://github.com/MichMich/MagicMirror/graphs/contributors"
        ],
        "license": "MIT",
        "bugs": {
          "url": "https://github.com/MichMich/MagicMirror/issues"
        },
        "homepage": "https://magicmirror.builders",
        "devDependencies": {
          "eslint-config-prettier": "^8.3.0",
          "eslint-plugin-jest": "^25.3.0",
          "eslint-plugin-jsdoc": "^37.4.0",
          "eslint-plugin-prettier": "^4.0.0",
          "express-basic-auth": "^1.2.1",
          "husky": "^7.0.4",
          "jest": "^27.4.5",
          "jsdom": "^19.0.0",
          "lodash": "^4.17.21",
          "nyc": "^15.1.0",
          "playwright": "^1.17.1",
          "prettier": "^2.5.1",
          "pretty-quick": "^3.1.3",
          "sinon": "^12.0.1",
          "stylelint": "^14.2.0",
          "stylelint-config-prettier": "^9.0.3",
          "stylelint-config-standard": "^24.0.0",
          "stylelint-prettier": "^2.0.0",
          "suncalc": "^1.8.0"
        },
        "optionalDependencies": {
          "electron": "^16.0.5"
        },
        "dependencies": {
          "colors": "^1.4.0",
          "console-stamp": "^3.0.3",
          "digest-fetch": "^1.2.1",
          "eslint": "^8.5.0",
          "express": "^4.17.2",
          "express-ipfilter": "^1.2.0",
          "feedme": "^2.0.2",
          "helmet": "^4.6.0",
          "iconv-lite": "^0.6.3",
          "module-alias": "^2.2.2",
          "moment": "^2.29.1",
          "node-fetch": "^2.6.6",
          "node-ical": "^0.13.0",
          "socket.io": "^4.4.0"
        },
        "engines": {
          "node": ">=12"
        },
        "jest": {
          "verbose": true,
          "testTimeout": 10000,
          "projects": [
            {
              "displayName": "unit",
              "moduleNameMapper": {
                "logger": "<rootDir>/js/logger.js"
              },
              "testMatch": [
                "**/tests/unit/**/*.[jt]s?(x)"
              ],
              "testPathIgnorePatterns": [
                "<rootDir>/tests/unit/mocks"
              ]
            },
            {
              "displayName": "electron",
              "testMatch": [
                "**/tests/electron/**/*.[jt]s?(x)"
              ]
            },
            {
              "displayName": "e2e",
              "setupFilesAfterEnv": [
                "<rootDir>/tests/e2e/mock-console.js"
              ],
              "testMatch": [
                "**/tests/e2e/**/*.[jt]s?(x)"
              ],
              "modulePaths": [
                "<rootDir>/js/"
              ],
              "testPathIgnorePatterns": [
                "<rootDir>/tests/e2e/modules/mocks",
                "<rootDir>/tests/e2e/modules/basic-auth.js",
                "<rootDir>/tests/e2e/global-setup.js",
                "<rootDir>/tests/e2e/mock-console.js"
              ]
            }
          ]
        },
        "directories": {
          "test": "tests"
        }
      }
      
      
      pi@magicmirror:~/MagicMirror $ 
      
      pi@magicmirror:~/MagicMirror $ pm2 logs --lines=50
      [TAILING] Tailing last 50 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 50 lines:
      PM2        | 2021-12-22T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-23T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-23T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-24T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-24T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-25T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-25T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-26T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-26T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-27T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-27T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-28T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-28T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-29T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-29T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-30T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-30T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-31T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-31T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-01T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2022-01-01T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-02T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2022-01-02T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-03T13:52:37: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2022-01-03T13:52:37: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-04T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2022-01-04T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-05T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2022-01-05T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-06T08:25:26: PM2 log: Stopping app:MagicMirror id:0
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:28: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:28: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:28: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:28: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:28: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
      PM2        | 2022-01-06T08:25:28: PM2 log: pid=32642 msg=process killed
      PM2        | 2022-01-06T08:31:27: PM2 log: App [MagicMirror:0] starting in -fork mode-
      PM2        | 2022-01-06T08:31:27: PM2 log: App [MagicMirror:0] online
      PM2        | 2022-01-06T08:33:57: PM2 log: Stopping app:MagicMirror id:0
      PM2        | 2022-01-06T08:33:58: PM2 log: pid=12095 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:33:58: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
      PM2        | 2022-01-06T08:33:58: PM2 log: pid=12095 msg=process killed
      PM2        | 2022-01-06T08:34:05: PM2 log: App [MagicMirror:0] starting in -fork mode-
      PM2        | 2022-01-06T08:34:05: PM2 log: App [MagicMirror:0] online
      
      /home/pi/.pm2/logs/MagicMirror-out.log last 50 lines:
      0|MagicMir | [06.01.2022 08:31.32.828] [LOG]   Module helper loaded: currentweather
      0|MagicMir | [06.01.2022 08:31.32.833] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:31.32.835] [LOG]   Module helper loaded: weatherforecast
      0|MagicMir | [06.01.2022 08:31.32.843] [LOG]   Loading module helpers ...
      0|MagicMir | [06.01.2022 08:31.32.845] [LOG]   No helper found for module: alert.
      0|MagicMir | [06.01.2022 08:31.32.847] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:31.32.849] [LOG]   Module helper loaded: updatenotification
      0|MagicMir | [06.01.2022 08:31.32.850] [LOG]   No helper found for module: clock.
      0|MagicMir | [06.01.2022 08:31.32.852] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:31.32.853] [LOG]   Module helper loaded: calendar
      0|MagicMir | [06.01.2022 08:31.32.855] [LOG]   No helper found for module: compliments.
      0|MagicMir | [06.01.2022 08:31.32.857] [LOG]   No helper found for module: MMM-doomsDay.
      0|MagicMir | [06.01.2022 08:31.32.859] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:31.32.860] [LOG]   Module helper loaded: currentweather
      0|MagicMir | [06.01.2022 08:31.32.862] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:31.32.863] [LOG]   Module helper loaded: weatherforecast
      0|MagicMir | [06.01.2022 08:31.33.522] [LOG]   Launching application.
      0|MagicMir | 
      0|MagicMir | > magicmirror@2.18.0 start
      0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMir | 
      0|MagicMir | [06.01.2022 08:34.09.207] [LOG]   Starting MagicMirror: v2.18.0
      0|MagicMir | [06.01.2022 08:34.09.220] [LOG]   Loading config ...
      0|MagicMir | [06.01.2022 08:34.09.232] [LOG]   Loading module helpers ...
      0|MagicMir | [06.01.2022 08:34.09.238] [LOG]   No helper found for module: alert.
      0|MagicMir | [06.01.2022 08:34.09.272] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.275] [LOG]   Module helper loaded: updatenotification
      0|MagicMir | [06.01.2022 08:34.09.279] [LOG]   No helper found for module: clock.
      0|MagicMir | [06.01.2022 08:34.09.600] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.603] [LOG]   Module helper loaded: calendar
      0|MagicMir | [06.01.2022 08:34.09.606] [LOG]   No helper found for module: compliments.
      0|MagicMir | [06.01.2022 08:34.09.609] [LOG]   No helper found for module: MMM-doomsDay.
      0|MagicMir | [06.01.2022 08:34.09.614] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.616] [LOG]   Module helper loaded: currentweather
      0|MagicMir | [06.01.2022 08:34.09.620] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.622] [LOG]   Module helper loaded: weatherforecast
      0|MagicMir | [06.01.2022 08:34.09.630] [LOG]   Loading module helpers ...
      0|MagicMir | [06.01.2022 08:34.09.632] [LOG]   No helper found for module: alert.
      0|MagicMir | [06.01.2022 08:34.09.634] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.635] [LOG]   Module helper loaded: updatenotification
      0|MagicMir | [06.01.2022 08:34.09.637] [LOG]   No helper found for module: clock.
      0|MagicMir | [06.01.2022 08:34.09.638] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.640] [LOG]   Module helper loaded: calendar
      0|MagicMir | [06.01.2022 08:34.09.641] [LOG]   No helper found for module: compliments.
      0|MagicMir | [06.01.2022 08:34.09.643] [LOG]   No helper found for module: MMM-doomsDay.
      0|MagicMir | [06.01.2022 08:34.09.645] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.646] [LOG]   Module helper loaded: currentweather
      0|MagicMir | [06.01.2022 08:34.09.648] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.649] [LOG]   Module helper loaded: weatherforecast
      0|MagicMir | [06.01.2022 08:34.10.239] [LOG]   Launching application.
      
      /home/pi/.pm2/logs/MagicMirror-error.log last 50 lines:
      0|MagicMir | - 
      0|MagicMir | [06.01.2022 08:34.09.653] [ERROR] App threw an error during load
      0|MagicMir | [06.01.2022 08:34.09.658] [ERROR] Error: Cannot find module 'mysql'
      0|MagicMir | Require stack:
      0|MagicMir | - /home/pi/MagicMirror/modules/MMM-MysqlQuery/node_helper.js
      0|MagicMir | - /home/pi/MagicMirror/js/app.js
      0|MagicMir | - /home/pi/MagicMirror/js/electron.js
      0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      0|MagicMir | - 
      0|MagicMir |     at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
      0|MagicMir |     at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
      0|MagicMir |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|MagicMir |     at Module._load (node:internal/modules/cjs/loader:785:27)
      0|MagicMir |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
      0|MagicMir |     at Module.require (node:internal/modules/cjs/loader:1012:19)
      0|MagicMir |     at require (node:internal/modules/cjs/helpers:94:18)
      0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-MysqlQuery/node_helper.js:10:13)
      0|MagicMir |     at Module._compile (node:internal/modules/cjs/loader:1116:14)
      0|MagicMir |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
      0|MagicMir | [06.01.2022 08:34.09.660] [ERROR] Whoops! There was an uncaught exception...
      **0|MagicMir | [06.01.2022 08:34.09.672] [ERROR] Error: Cannot find module 'mysql'**
      0|MagicMir | Require stack:
      0|MagicMir | - /home/pi/MagicMirror/modules/MMM-MysqlQuery/node_helper.js
      0|MagicMir | - /home/pi/MagicMirror/js/app.js
      0|MagicMir | - /home/pi/MagicMirror/js/electron.js
      0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      0|MagicMir | - 
      0|MagicMir |     at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
      0|MagicMir |     at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
      0|MagicMir |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|MagicMir |     at Module._load (node:internal/modules/cjs/loader:785:27)
      0|MagicMir |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
      0|MagicMir |     at Module.require (node:internal/modules/cjs/loader:1012:19)
      0|MagicMir |     at require (node:internal/modules/cjs/helpers:94:18)
      0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-MysqlQuery/node_helper.js:10:13)
      0|MagicMir |     at Module._compile (node:internal/modules/cjs/loader:1116:14)
      0|MagicMir |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10) {
      0|MagicMir |   code: 'MODULE_NOT_FOUND',
      0|MagicMir |   requireStack: [
      0|MagicMir |     '/home/pi/MagicMirror/modules/MMM-MysqlQuery/node_helper.js',
      0|MagicMir |     '/home/pi/MagicMirror/js/app.js',
      0|MagicMir |     '/home/pi/MagicMirror/js/electron.js',
      0|MagicMir |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
      0|MagicMir |     undefined
      0|MagicMir |   ]
      0|MagicMir | }
      0|MagicMir | [06.01.2022 08:34.09.674] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | [06.01.2022 08:34.09.675] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|MagicMir | [12904:0106/083411.118170:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|MagicMir | [12927:0106/083411.471839:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      

      pi@magicmirror:~/MagicMirror $ npm install mysql

      npm WARN EBADENGINE Unsupported engine { package: 'magicmirror@2.18.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@es-joy/jsdoccomment@0.13.0',
      npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@eslint/eslintrc@1.0.5',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/experimental-utils@5.8.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/scope-manager@5.8.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/types@5.8.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/typescript-estree@5.8.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/visitor-keys@5.8.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'commander@8.3.0',
      npm WARN EBADENGINE   required: { node: '>= 12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'comment-parser@1.3.0',
      npm WARN EBADENGINE   required: { node: '>= 12.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'data-urls@3.0.1',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'domexception@4.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'eslint@8.5.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'eslint-plugin-jest@25.3.0',
      npm WARN EBADENGINE   required: { node: '^12.13.0 || ^14.15.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'eslint-plugin-jsdoc@37.4.0',
      npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'eslint-scope@7.1.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'eslint-visitor-keys@3.1.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'espree@9.2.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'html-encoding-sniffer@3.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'husky@7.0.4',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'jsdoc-type-pratt-parser@2.0.0',
      npm WARN EBADENGINE   required: { node: '>=12.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'jsdom@19.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'playwright@1.17.1',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'playwright-core@1.17.1',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'postcss-safe-parser@6.0.0',
      npm WARN EBADENGINE   required: { node: '>=12.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'stylelint@14.2.0',
      npm WARN EBADENGINE   required: { node: '^12.20.0 || ^14.13.1 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'stylelint-config-prettier@9.0.3',
      npm WARN EBADENGINE   required: { node: '>= 12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'stylelint-prettier@2.0.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'tr46@3.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'w3c-xmlserializer@3.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'webidl-conversions@7.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'whatwg-encoding@2.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'whatwg-mimetype@3.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'whatwg-url@10.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'xml-name-validator@4.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      
      added 494 packages, and audited 761 packages in 6m
      
      66 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      pi@magicmirror:~/MagicMirror $ 
      
      

      Now when I start MM, I get just a blank page.

      pi@magicmirror:~/MagicMirror $ pm2 start MagicMirror
      [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
      [PM2] [MagicMirror](0) ✓
      [PM2] Process successfully started
      ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
      │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
      ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
      │ 0  │ MagicMirror        │ fork     │ 45   │ online    │ 0%       │ 2.6mb    │
      └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
      pi@magicmirror:~/MagicMirror $ 
      
      

      Hope it’s a simple fix, thank you.

      R mumblebajM 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @Richard238
        last edited by

        @richard238 if you haven’t deleted yet, can u try something

        because you did

        pi@magicmirror:~/MagicMirror $ npm init -y
        

        in the mm folder, instead of the module folder, this overwrote the shipped package.json

        so,

        do

        cd ~/MagicMirror.save
        git checkout package.json
        rm -rf node_modules
        rm package.lock.json
        npm install --only=prod
        

        then stop good mm if running and then do , in the MagicMirror.save folder

        npm start

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          Richard238 @Richard238
          last edited by

          Powered it down, switched it on. Shows MM splash screen, then goes to desktop.

          No sign of MM :(

          Nothing new logged in either .npm or .pm2 log files.

          mumblebajM 1 Reply Last reply Reply Quote 0
          • mumblebajM Offline
            mumblebaj Module Developer @Richard238
            last edited by

            @richard238 Have a look at the below post. It might solve some of your issues.

            https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

            Check out my modules at: https://github.com/mumblebaj?tab=repositories

            1 Reply Last reply Reply Quote 0
            • mumblebajM Offline
              mumblebaj Module Developer @Richard238
              last edited by

              @richard238 said in v2.18.0 update gave black screen, then nothing.:

              0|MagicMir | [06.01.2022 08:34.09.653] [ERROR] App threw an error during load
              0|MagicMir | [06.01.2022 08:34.09.658] [ERROR] Error: Cannot find module ‘mysql’

              Your error!

              Check out my modules at: https://github.com/mumblebaj?tab=repositories

              R 1 Reply Last reply Reply Quote 0
              • R Offline
                Richard238 @mumblebaj
                last edited by

                @mumblebaj

                Yes, that’s what I spotted, then I did

                pi@magicmirror:~/MagicMirror $ npm install mysql
                
                mumblebajM 1 Reply Last reply Reply Quote 0
                • mumblebajM Offline
                  mumblebaj Module Developer @Richard238
                  last edited by

                  @richard238 No, You need to do the following:

                  cd ~.MagicMirror/modules/MMM-MysqlQuery
                  npm init -y
                  npm install mysql --save
                  

                  There may be other missing modules.

                  Check out my modules at: https://github.com/mumblebaj?tab=repositories

                  R 1 Reply Last reply Reply Quote 0
                  • R Offline
                    Richard238 @mumblebaj
                    last edited by

                    @mumblebaj

                    pi@magicmirror:~ $ cd ~/MagicMirror/modules/MMM-MysqlQuery
                    pi@magicmirror:~/MagicMirror/modules/MMM-MysqlQuery $ npm init -y
                    Wrote to /home/pi/MagicMirror/modules/MMM-MysqlQuery/package.json:
                    
                    {
                      "name": "mmm-mysqlquery",
                      "version": "1.0.0",
                      "description": "MagicMirror module to display result of MySQL query",
                      "license": "MIT",
                      "main": "MMM-MysqlQuery.js",
                      "scripts": {
                        "test": "./node_modules/grunt/bin/grunt"
                      },
                      "author": "Rich Alberth",
                      "repository": {
                        "type": "git",
                        "url": "git+https://github.com/ralberth/MMM-MysqlQuery.git"
                      },
                      "keywords": [
                        "MagicMirror",
                        "module",
                        "mysql"
                      ],
                      "dependencies": {
                        "mysql": "latest",
                        "npm": "^6.4.1"
                      },
                      "devDependencies": {
                        "grunt": "latest",
                        "grunt-eslint": "latest",
                        "grunt-jsonlint": "latest",
                        "grunt-markdownlint": "^1.0.13",
                        "grunt-stylelint": "latest",
                        "grunt-yamllint": "^0.3.0",
                        "stylelint": "^8.3.0",
                        "stylelint-config-standard": "latest",
                        "time-grunt": "latest",
                        "electron-rebuild": "^1.8.2"
                      },
                      "bugs": {
                        "url": "https://github.com/ralberth/MMM-MysqlQuery/issues"
                      },
                      "homepage": "https://github.com/ralberth/MMM-MysqlQuery#readme"
                    }
                    
                    
                    pi@magicmirror:~/MagicMirror/modules/MMM-MysqlQuery $ npm install mysql --save
                    npm ERR! code ERESOLVE
                    npm ERR! ERESOLVE unable to resolve dependency tree
                    npm ERR! 
                    npm ERR! While resolving: mmm-mysqlquery@1.0.0
                    npm ERR! Found: stylelint@8.4.0
                    npm ERR! node_modules/stylelint
                    npm ERR!   dev stylelint@"^8.3.0" from the root project
                    npm ERR! 
                    npm ERR! Could not resolve dependency:
                    npm ERR! peer stylelint@"^14.0.0" from grunt-stylelint@0.17.0
                    npm ERR! node_modules/grunt-stylelint
                    npm ERR!   dev grunt-stylelint@"latest" from the root project
                    npm ERR! 
                    npm ERR! Fix the upstream dependency conflict, or retry
                    npm ERR! this command with --force, or --legacy-peer-deps
                    npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
                    npm ERR! 
                    npm ERR! See /home/pi/.npm/eresolve-report.txt for a full report.
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/pi/.npm/_logs/2022-01-06T11_56_31_385Z-debug.log
                    pi@magicmirror:~/MagicMirror/modules/MMM-MysqlQuery $ 
                    
                    
                    mumblebajM 1 Reply Last reply Reply Quote 0
                    • mumblebajM Offline
                      mumblebaj Module Developer @Richard238
                      last edited by

                      @richard238 I think you installed the latest version in the MagicMirror folder whereas the MysqlQuery wants version 6.4.1. Go to the root of MagicMirror and run npm uninstall mysql. Once that is done then cd modules/MMM-MysqlQuery. Then just run npm install in the folder. It should then install the dependencies that it require.

                      Check out my modules at: https://github.com/mumblebaj?tab=repositories

                      R 1 Reply Last reply Reply Quote -1
                      • R Offline
                        Richard238 @mumblebaj
                        last edited by

                        @mumblebaj

                        pi@magicmirror:~/MagicMirror $ npm uninstall mysql
                        npm WARN EBADENGINE Unsupported engine { package: 'magicmirror@2.18.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: '@es-joy/jsdoccomment@0.13.0',
                        npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: '@eslint/eslintrc@1.0.5',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/experimental-utils@5.8.0',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/scope-manager@5.8.0',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/types@5.8.0',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/typescript-estree@5.8.0',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/visitor-keys@5.8.0',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'commander@8.3.0',
                        npm WARN EBADENGINE   required: { node: '>= 12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'comment-parser@1.3.0',
                        npm WARN EBADENGINE   required: { node: '>= 12.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'data-urls@3.0.1',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'domexception@4.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'eslint@8.5.0',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'eslint-plugin-jest@25.3.0',
                        npm WARN EBADENGINE   required: { node: '^12.13.0 || ^14.15.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'eslint-plugin-jsdoc@37.4.0',
                        npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'eslint-scope@7.1.0',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'eslint-visitor-keys@3.1.0',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'espree@9.2.0',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'html-encoding-sniffer@3.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'husky@7.0.4',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'jsdoc-type-pratt-parser@2.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'jsdom@19.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'playwright@1.17.1',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'playwright-core@1.17.1',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'postcss-safe-parser@6.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'stylelint@14.2.0',
                        npm WARN EBADENGINE   required: { node: '^12.20.0 || ^14.13.1 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'stylelint-config-prettier@9.0.3',
                        npm WARN EBADENGINE   required: { node: '>= 12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'stylelint-prettier@2.0.0',
                        npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'tr46@3.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'w3c-xmlserializer@3.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'webidl-conversions@7.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'whatwg-encoding@2.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'whatwg-mimetype@3.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'whatwg-url@10.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        npm WARN EBADENGINE Unsupported engine { package: 'xml-name-validator@4.0.0',
                        npm WARN EBADENGINE   required: { node: '>=12' },
                        npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
                        
                        removed 4 packages, and audited 758 packages in 14s
                        
                        66 packages are looking for funding
                          run `npm fund` for details
                        
                        found 0 vulnerabilities
                        pi@magicmirror:~/MagicMirror $ cd modules/MMM-MysqlQuery
                        pi@magicmirror:~/MagicMirror/modules/MMM-MysqlQuery $ npm install
                        npm ERR! code ERESOLVE
                        npm ERR! ERESOLVE unable to resolve dependency tree
                        npm ERR! 
                        npm ERR! While resolving: mmm-mysqlquery@1.0.0
                        npm ERR! Found: stylelint@8.4.0
                        npm ERR! node_modules/stylelint
                        npm ERR!   dev stylelint@"^8.3.0" from the root project
                        npm ERR! 
                        npm ERR! Could not resolve dependency:
                        npm ERR! peer stylelint@"^14.0.0" from grunt-stylelint@0.17.0
                        npm ERR! node_modules/grunt-stylelint
                        npm ERR!   dev grunt-stylelint@"latest" from the root project
                        npm ERR! 
                        npm ERR! Fix the upstream dependency conflict, or retry
                        npm ERR! this command with --force, or --legacy-peer-deps
                        npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
                        npm ERR! 
                        npm ERR! See /home/pi/.npm/eresolve-report.txt for a full report.
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /home/pi/.npm/_logs/2022-01-06T12_07_55_731Z-debug.log
                        pi@magicmirror:~/MagicMirror/modules/MMM-MysqlQuery $ 
                        
                        
                        mumblebajM 1 Reply Last reply Reply Quote 0
                        • mumblebajM Offline
                          mumblebaj Module Developer @Richard238
                          last edited by

                          @richard238 It seems your versions of npm and node might be older than the required versions. run the following

                          node -v
                          npm -v
                          

                          Check out my modules at: https://github.com/mumblebaj?tab=repositories

                          R 1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 3
                          • 4
                          • 5
                          • 6
                          • 7
                          • 8
                          • 1 / 8
                          • First post
                            Last post
                          Enjoying MagicMirror? Please consider a donation!
                          MagicMirror created by Michael Teeuw.
                          Forum managed by Sam, technical setup by Karsten.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy