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

    Posts

    Recent Best Controversial
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil does that mean I can’t use any modules that use the internet? im using ssh to do these codes and I plan to use alexa and stuff with it so it will require internet use, so what did you mean by that?

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil I am now given this, what do I do next?

      MagicMirror installation successful!
      
      > magicmirror@2.6.0 install-fonts /home/pi/MagicMirror
      > cd fonts && npm install
      
      added 1 package from 1 contributor and audited 1 package in 5.243s
      found 0 vulnerabilities
      
      npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
      npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
      
      added 930 packages from 1367 contributors and audited 2433 packages in 160.197s
      found 23 vulnerabilities (8 low, 14 moderate, 1 high)
        run `npm audit fix` to fix them, or `npm audit` for details
      
      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil I erased node_modules and reinstalled magicmirror and got this

      Cloning MagicMirror Done!
      Installing dependencies ...
      npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ENODATA: Cache input stream was empty
      npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
      npm ERR! code EINTEGRITY
      npm ERR! errno EINTEGRITY
      npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/feedme: Integrity verification failed for sha512-neorTWnU+xIGoFGw5xKt8oa6Zrp4OIAdLKdTJkmTvESrU1kHYWBEQbxKaFtPAPPX7OiREkBnp0E0/gPN4QnmQg== (/home/pi/.npm/_cacache/content-v2/sha512/9d/ea/2b4d69d4fb1206a051b0e712adf286ba66ba7838801d2ca753264993bc44ab53590761604441bc4a685b4f00f3d7ece891124067a74134fe03cde109e642)
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2019-02-20T17_49_38_341Z-debug.log
      Unable to install dependencies!
      

      What do I do now?

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil I believe u figured out why it was restarting, a common cause of it is lack of power, and some person had problems with their keyboard drawing too much power so I unplugged it and it went all the way through without rebooting, but I still got some issues, im left with

      Installing dependencies ...
      npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
      npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
      npm WARN tarball cached data for async@~1.5.2 (sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=) seems to be corrupted. Refreshing cache.
      npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
      npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
      
      npm ERR! path /home/pi/MagicMirror/node_modules/coffeescript/bin/coffee
      npm ERR! code ENOENT
      npm ERR! errno -2
      npm ERR! syscall chmod
      npm ERR! enoent ENOENT: no such file or directory, chmod '/home/pi/MagicMirror/node_modules/coffeescript/bin/coffee'
      npm ERR! enoent This is related to npm not being able to find a file.
      npm ERR! enoent
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2019-02-20T04_31_21_244Z-debug.log
      Unable to install dependencies!
      
      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil 32 gb

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @jmartin1009 it also does that everytime I try to install electron so maybe that’s why it isn’t working :confused: is there any fix for this?

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil oh it reboots everytime I install magicmirror, how do I prevent this? because it always reboots like 1/3 of the way through the progress bar and it always did it so I thought it was normal lol can I stop this? I have a pi 3+ btw

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil okay I did all of that and it said it cloned and everthing, and then it rebooted during the install, now what? lol

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil yes I deleted the contents of the old folder and changed the name and redownloaded MagicMirror

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil another error, it says

      npm ERR! file /home/pi/MagicMirror/package.json
      npm ERR! code EJSONPARSE
      npm ERR! JSON.parse Failed to parse json
      npm ERR! JSON.parse Unexpected end of JSON input while parsing near ' '
      npm ERR! JSON.parse Failed to parse package. json data.
      npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
      
      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil still says

      electron: not found
      

      Could this be because it says that node_modules is missing? I did both npm install and npm install electron@3.0.10 in MagicMirror.

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil do I do npm install in pi or magic mirror?

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil it also says that “local package.json exists, but node_modules is missing, did you mean to install?”

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil the pi reboots and then I change to magicmirror folder and try to start magic mirror and it still says it can’t find electron for some reason :/

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil got this, now what?

      pi@raspberrypi:~ $ npm init -y
      Wrote to /home/pi/package.json:
      
      {
        "name": "pi",
        "version": "1.0.0",
        "description": "",
        "main": "index.js",
        "dependencies": {},
        "devDependencies": {},
        "scripts": {
          "test": "echo \"Error: no test specified\" && exit 1"
        },
        "keywords": [],
        "author": "",
        "license": "ISC"
      }
      
      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @sdetweil npm is 6.4.1 and node is 10.15.1. When I try to install electron now it just says that my cache input stream is empty. when I tried to get to node modules like @bhepler said, it said no such file or directory, and when I force cleared it gave me a warning message saying “I sure hope you know what you are doing.”

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @bhepler I am given this error screen

      pi@raspberrypi:~ $ sudo npm install -g electron@2.0.0
      npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ENODATA: Cache input stream was empty
      npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
      npm ERR! code EINTEGRITY
      npm ERR! errno EINTEGRITY
      npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/electron: Integrity verification failed for sha512-MAYuYPYfeCgTfXMl3ioXQAncWDyol9bCAkDBgeNSFemdEJgyOkTSixehWJJTIC9Pc7Ebrgljxn1t3lwm9ae/Bw== (/root/.npm/_cacache/content-v2/sha512/30/06/2e60f61f7828137d7325de2a174009dc583ca897d6c20240c181e35215e99d1098323a44d28b17a1589253202f4f73b11bae0963c67d6dde5c26f5a7bf07)
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /root/.npm/_logs/2019-02-20T01_39_41_726Z-debug.log
      
      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @bhepler am I trying to install the correct version of electron or is there another version I should be using, the guide I was trying said to use 1.7.6 but people on here say 2.0.0

      posted in Troubleshooting
      J
      jmartin1009
    • RE: Can't get MM to start, says it can't find electron, then electron won't start

      @bhelper am I trying to install the correct version of electron is there another version I should be using, the guide I was trying said to use 1.7.6 but people on here say 2.0.0

      posted in Troubleshooting
      J
      jmartin1009
    • Can't get MM to start, says it can't find electron, then electron won't start

      When I try to install electron using sudo npm install electron@2.0.0, I get

      pi@raspberrypi:~ $ sudo npm install electron@2.0.0
      npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ENODATA: Cache input stream was empty
      npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
      npm ERR! code EINTEGRITY
      npm ERR! errno EINTEGRITY
      npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/electron: Integrity verification failed for sha512-MAYuYPYfeCgTfXMl3ioXQAncWDyol9bCAkDBgeNSFemdEJgyOkTSixehWJJTIC9Pc7Ebrgljxn1t3lwm9ae/Bw== (/root/.npm/_cacache/content-v2/sha512/30/06/2e60f61f7828137d7325de2a174009dc583ca897d6c20240c181e35215e99d1098323a44d28b17a1589253202f4f73b11bae0963c67d6dde5c26f5a7bf07)
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /root/.npm/_logs/2019-02-20T00_15_03_383Z-debug.log
      

      and when I try to start magic mirror I get

      pi@raspberrypi:~ $ cd ~/MagicMirror
      pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start
      
      > magicmirror@2.6.0 start /home/pi/MagicMirror
      > sh run-start.sh
      
      run-start.sh: 4: run-start.sh: electron: not found
      npm ERR! file sh
      npm ERR! code ELIFECYCLE
      npm ERR! errno ENOENT
      npm ERR! syscall spawn
      npm ERR! magicmirror@2.6.0 start: `sh run-start.sh`
      npm ERR! spawn ENOENT
      npm ERR!
      npm ERR! Failed at the magicmirror@2.6.0 start script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      npm WARN Local package.json exists, but node_modules missing, did you mean to install?
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2019-02-20T00_18_40_335Z-debug.log
      

      I’m a complete noobie when it comes to this and I just can’t seem to get it to work, all help is appreciated!!

      posted in Troubleshooting
      J
      jmartin1009
    • 1 / 1