MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. vandam3b
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    V
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 18
    • Groups 0

    Posts

    Recent Best Controversial
    • Trouble using pm2 to install modules

      Hi, I can not seem to load and modules. I reinstalled MM using the script but now no modules will load. Here is what I out in and the information I get back. Any help would be appreciated. I tried 3 different modules with no success. Thank you
      vandam3b@raspberrypi:~ $ cd MagicMirror
      vandam3b@raspberrypi:~/MagicMirror $ cd modules
      vandam3b@raspberrypi:~/MagicMirror/modules $ https://github.com/jclarke0000/MMM-MyScoreboard.git
      bash: https://github.com/jclarke0000/MMM-MyScoreboard.git: No such file or directory
      vandam3b@raspberrypi:~/MagicMirror/modules $ pm2 install https://github.com/jclarke0000/MMM-MyScoreboard.git
      [PM2][Module] Installing NPM https://github.com/jclarke0000/MMM-MyScoreboard.git module
      [PM2][Module] Module already installed. Updating.
      Deleting /home/vandam3b/.pm2/modules/MMM-MyScoreboard
      [PM2][Module] Calling [NPM] to install https://github.com/jclarke0000/MMM-MyScoreboard.git …

      added 39 packages in 22s

      1 package is looking for funding
      run npm fund for details
      [PM2][Module] Module downloaded
      ENOENT: no such file or directory, open ‘/home/vandam3b/.pm2/modules/MMM-MyScoreboard/node_modules/MMM-MyScoreboard/package.json’
      node:internal/modules/cjs/loader:1051
      throw err;
      ^

      Error: Cannot find module ‘/home/vandam3b/.pm2/modules/MMM-MyScoreboard/node_modules/MMM-MyScoreboard/package.json’
      Require stack:

      • /usr/local/lib/node_modules/pm2/lib/API/Modules/NPM.js
      • /usr/local/lib/node_modules/pm2/lib/API/Modules/Modularizer.js
      • /usr/local/lib/node_modules/pm2/lib/API.js
      • /usr/local/lib/node_modules/pm2/lib/binaries/CLI.js
      • /usr/local/lib/node_modules/pm2/bin/pm2
        at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
        at Module._load (node:internal/modules/cjs/loader:901:27)
        at Module.require (node:internal/modules/cjs/loader:1115:19)
        at require (node:internal/modules/helpers:130:18)
        at StartModule (/usr/local/lib/node_modules/pm2/lib/API/Modules/NPM.js:343:22)
        at /usr/local/lib/node_modules/pm2/lib/API/Modules/NPM.js:257:7
        at /usr/local/lib/node_modules/pm2/lib/Configuration.js:68:14
        at FSReqCallback.oncomplete (node:fs:189:23) {
        code: ‘MODULE_NOT_FOUND’,
        requireStack: [
        ‘/usr/local/lib/node_modules/pm2/lib/API/Modules/NPM.js’,
        ‘/usr/local/lib/node_modules/pm2/lib/API/Modules/Modularizer.js’,
        ‘/usr/local/lib/node_modules/pm2/lib/API.js’,
        ‘/usr/local/lib/node_modules/pm2/lib/binaries/CLI.js’,
        ‘/usr/local/lib/node_modules/pm2/bin/pm2’
        ]
        }

      Node.js v20.8.0
      vandam3b@raspberrypi:~/MagicMirror/modules $

      posted in General Discussion
      V
      vandam3b
    • RE: Trying to update to version 2.25

      Hi, I just wanted to let you know. I used your script to reinstall and all went well. Thanks again.

      posted in Troubleshooting
      V
      vandam3b
    • RE: Trying to update to version 2.25

      I will. Thanks

      posted in Troubleshooting
      V
      vandam3b
    • RE: Trying to update to version 2.25

      Hi, I tried it but I still got the same error. I don’t know where to find the install.log. I appreciate your help and do not want to take any more of your time. I will just uninstall everything and then start from scratch. Thanks again.

      posted in Troubleshooting
      V
      vandam3b
    • RE: Trying to update to version 2.25

      @vandam3b
      Hi, I installed your scripts and now get this when I try to run MagicMirror with npm start.

      magicmirror@2.25.0 start
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      sh: 1: ./node_modules/.bin/electron: not found
      Any help would be appreciated. Thank you.

      posted in Troubleshooting
      V
      vandam3b
    • RE: Trying to update to version 2.25

      I will give it a try. Thank you very much.

      posted in Troubleshooting
      V
      vandam3b
    • RE: Trying to update to version 2.25

      Hi, I installed it manually.

      posted in Troubleshooting
      V
      vandam3b
    • Trying to update to version 2.25

      Hi, I am trying to update to version 2.25. I am not a coder by any stretch. I typed this in (git pull && npm run install-mm) and received this message:
      hint: Pulling without specifying how to reconcile divergent branches is
      hint: discouraged. You can squelch this message by running one of the following
      hint: commands sometime before your next pull:
      hint:
      hint: git config pull.rebase false # merge (the default strategy)
      hint: git config pull.rebase true # rebase
      hint: git config pull.ff only # fast-forward only
      hint:
      hint: You can replace “git config” with “git config --global” to set a default
      hint: preference for all repositories. You can also pass --rebase, --no-rebase,
      hint: or --ff-only on the command line to override the configured default per
      hint: invocation.
      Updating e87f50e6…343e7de7
      error: Your local changes to the following files would be overwritten by merge:
      package-lock.json
      Please commit your changes or stash them before you merge.
      Aborting

      Any help would be appreciated. Thank you.

      posted in Troubleshooting
      V
      vandam3b
    • 1
    • 2
    • 2 / 2