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.

    Error on starting MM2: module not present

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    22 Posts 2 Posters 7.9k Views 2 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.
    • S Do not disturb
      sdetweil @MWel1977
      last edited by

      @mwel1977 said in Error on starting MM2: module not present:

      Can’t I just remove the MMM-Swipe module and reinstall it?

      sure… but u said that didn’t work before…

      the package.json in MMM-Swipe is looking for electron version 1.2.1, very old…

      I would edit the file before running npm install in the MMM-Swipe folder and chaneg the version to match
      whatever electron verison is installed already…

      MM/node_modules/electron/package.json

      “version”: “2.0.13”

      the MMM-Swipe package.json to

      change

      devDependencies": {
          "electron-rebuild": "^1.2.1"
        }
      

      to

      devDependencies": {
          "electron-rebuild": "^x.y.z"  === the electron version number above
        }
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MWel1977 @sdetweil
        last edited by

        @sdetweil
        I think I’ll just start over again with a reimage of the sd card.:persevering_face:
        I’ve checked the package.json file in the electron folder and it showed version 2.0.16
        So I entered that number at the bottom of the package.json file in the MMM-Swipe folder and run npm install again in the Swipe folder. Yet it gave me:

        pi@Mirror:~/MagicMirror/modules/MMM-Swipe $ npm install
        npm ERR! code ETARGET
        npm ERR! notarget No matching version found for electron-rebuild@^2.0.16
        npm ERR! notarget In most cases you or one of your dependencies are requesting
        npm ERR! notarget a package version that doesn't exist.
        npm ERR! notarget 
        npm ERR! notarget It was specified as a dependency of 'MMM-Swipe'
        npm ERR! notarget 
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/pi/.npm/_logs/2019-01-15T22_09_44_953Z-debug.log
        pi@Mirror:~/MagicMirror/modules/MMM-Swipe $ 
        

        Thanks for helping me out so far.
        How do you know al this stuff? How long are you already doing this?
        Hope I’ll get that smart one day. :grinning_face:

        1 Reply Last reply Reply Quote 0
        • 1
        • 2
        • 3
        • 3 / 3
        • 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