• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Doesn't contain package.json file

Scheduled Pinned Locked Moved Development
8 Posts 2 Posters 2.0k 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 Offline
    sdetweil
    last edited by Dec 24, 2019, 6:14 PM

    many components in a javascript application need to have their versions match the surrounding runtime. grpc is one of those… it will run in and outside the electron browser…

    the electron-rebuild module is loaded as part of the base,
    so you would do

    cd ~/MagicMirror
    node_modules/.bin/electron_rebuild
    

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • A Offline
      allancherianbiju
      last edited by Dec 30, 2019, 5:44 AM

      Just closing notes. I was able to fix this!

      @sdetweil provided extra commands.

      cd ~/MagicMirror
      npm install electron-rebuild
      node_modules/.bin/electron-rebuild
      

      That worked for me, but I was faced with a new error.

      Error: Cannot find module 'node_helper_.

      Fixed that by running

      cd -/MagicMirror
      git checkout modules/node_modules/node_helper/index.js
      

      Thanks for the help guys!

      1 Reply Last reply Reply Quote 0
      • A Offline
        allancherianbiju
        last edited by Mar 5, 2020, 6:00 AM

        I had to reinstall MM and had to go through all of this again. Rebuilding electron fixed the issue and I found out that the git command I used doesn’t work anymore. Zzz… Updating should help.

        cd -/MagicMirror
        git checkout modules/node_modules/node_helper/index.js
        
        S 1 Reply Last reply Mar 5, 2020, 12:15 PM Reply Quote 0
        • S Offline
          sdetweil @allancherianbiju
          last edited by Mar 5, 2020, 12:15 PM

          @allancherianbiju in version 2.10 we fixed this problem, by moving the file to a different location.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          A 1 Reply Last reply Mar 10, 2020, 7:38 AM Reply Quote 0
          • A Offline
            allancherianbiju @sdetweil
            last edited by Mar 10, 2020, 7:38 AM

            @sdetweil Oh! That’s great! Onward, then :D

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