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

    Nomis

    @Nomis

    newbie

    9
    Reputation
    638
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Nomis Unfollow Follow

    Best posts made by Nomis

    • RE: Electron NPM Error

      @DeanoAus

      Sorry to hear that.

      For me it worked with those dependencies fixed.

      pi@raspberrypi:~$ npm -v ; node -v
      4.1.2
      v7.7.1
      pi@raspberrypi:~$ cd MagicMirror/
      pi@raspberrypi:~/MagicMirror$ cd node_modules/
      pi@raspberrypi:~/MagicMirror/node_modules$ npm install electron
      
      > electron@1.6.6 postinstall /home/pi/MagicMirror/node_modules/electron
      > node install.js
      
      magicmirror@2.1.1 /home/pi/MagicMirror
      └── electron@1.6.6
      
      pi@raspberrypi:~/MagicMirror/node_modules$
      

      Here the thread I’ve been looking last night: https://github.com/electron/electron/issues/9324
      User: johannesjo made a fork: https://github.com/johannesjo/electron-prebuilt

      But what I did was to downgrade the extract-zip:

      pi@raspberrypi:~$ cd MagicMirror/
      pi@raspberrypi:~/MagicMirror$ cd node_modules/
      pi@raspberrypi:~/MagicMirror/node_modules$ npm uninstall extract-zip
      .
      .
      .
      pi@raspberrypi:~/MagicMirror/node_modules$ npm install extract-zip@1.6.0
      .
      .
      .
      pi@raspberrypi:~/MagicMirror/node_modules$ npm install electron
      

      As a result of all this:

      pi@raspberrypi:~/MagicMirror$ npm install
      
      > magicmirror@2.1.1 install /home/pi/MagicMirror
      > cd vendor && npm install
      
      magicmirror-vendors@ /home/pi/MagicMirror/vendor
      ├── font-awesome@4.7.0
      ├── moment@2.18.1
      ├── moment-timezone@0.5.13
      └── weathericons@2.1.0
      
      
      > magicmirror@2.1.1 postinstall /home/pi/MagicMirror
      > sh installers/postinstall/postinstall.sh
      
      MagicMirror installation successful!
      pi@raspberrypi:~/MagicMirror$
      

      Hope it helps

      posted in Troubleshooting
      NomisN
      Nomis
    • RE: MagicMirror fails to install during electron installation

      I’ve checked the thread where everyone reported the issue and right now they are on it.
      Good news tho for those without patience. It seems that other module is causing all this trouble: xtract-zip@1.6.1 to 1.6.4 is interfering with post install.

      To solve this:

      npm uninstall extract-zip
      npm install extract-zip@1.6.0
      npm install electron
      
      posted in Troubleshooting
      NomisN
      Nomis
    • RE: MagicMirror fails to install during electron installation

      @mitchscobell

      my bad, typo there, Corrected now.

      I think we have discussed this in two different posts: https://forum.magicmirror.builders/topic/2457/electron-npm-error/22

      posted in Troubleshooting
      NomisN
      Nomis
    • RE: Electron NPM Error

      I ran into some trouble myself after installing the MMM-PIR-Sensor (the whole MM is not starting :D )
      Mental Note: Remember to BackUp stable builds!

      I don’t see the need of using sudo for npm install.
      I’ve tried to replicate your error(took a while to undo the fixes):

      npm list
      
      npm ERR! extraneous: gulp-stylelint@3.9.0 /home/pi/MagicMirror/node_modules/gulp-stylelint
      npm ERR! extraneous: stylelint@7.8.0 /home/pi/MagicMirror/node_modules/stylelint
      
      npm purge
      
      npm WARN grunt-stylelint@0.8.0 requires a peer of stylelint@^7.8.0 but none was installed.
      npm WARN stylelint-config-standard@16.0.0 requires a peer of stylelint@^7.8.0 but none was installed.
      
      npm rebuild
      got this: coffee-script@1.10.0 should be installed with -g // npm WARN prefer global jsonlint@1.6.2 should be installed with -g
      
      cd /MagicMirror/node_modules/
      npm install  coffee-script@1.10.0 -g
      npm install jsonlint@1.6.2 -g
      npm install stylelint
      npm install colorguard@1.2.0 -g
      
      npm list (again yes)
      
      

      you will get an error: npm ERR! extraneous: stylelint@7.10.1 /home/pi/MagicMirror/node_modules/stylelint because we instaleld manually.

      Give it a try and let us know.

      posted in Troubleshooting
      NomisN
      Nomis
    • RE: Electron NPM Error

      @DeanoAus

      You are welcome and glad it works!

      posted in Troubleshooting
      NomisN
      Nomis

    Latest posts made by Nomis

    • RE: MagicMirror fails to install during electron installation

      @mitchscobell

      my bad, typo there, Corrected now.

      I think we have discussed this in two different posts: https://forum.magicmirror.builders/topic/2457/electron-npm-error/22

      posted in Troubleshooting
      NomisN
      Nomis
    • RE: Electron NPM Error

      @DeanoAus

      You are welcome and glad it works!

      posted in Troubleshooting
      NomisN
      Nomis
    • RE: Electron NPM Error

      I ran into some trouble myself after installing the MMM-PIR-Sensor (the whole MM is not starting :D )
      Mental Note: Remember to BackUp stable builds!

      I don’t see the need of using sudo for npm install.
      I’ve tried to replicate your error(took a while to undo the fixes):

      npm list
      
      npm ERR! extraneous: gulp-stylelint@3.9.0 /home/pi/MagicMirror/node_modules/gulp-stylelint
      npm ERR! extraneous: stylelint@7.8.0 /home/pi/MagicMirror/node_modules/stylelint
      
      npm purge
      
      npm WARN grunt-stylelint@0.8.0 requires a peer of stylelint@^7.8.0 but none was installed.
      npm WARN stylelint-config-standard@16.0.0 requires a peer of stylelint@^7.8.0 but none was installed.
      
      npm rebuild
      got this: coffee-script@1.10.0 should be installed with -g // npm WARN prefer global jsonlint@1.6.2 should be installed with -g
      
      cd /MagicMirror/node_modules/
      npm install  coffee-script@1.10.0 -g
      npm install jsonlint@1.6.2 -g
      npm install stylelint
      npm install colorguard@1.2.0 -g
      
      npm list (again yes)
      
      

      you will get an error: npm ERR! extraneous: stylelint@7.10.1 /home/pi/MagicMirror/node_modules/stylelint because we instaleld manually.

      Give it a try and let us know.

      posted in Troubleshooting
      NomisN
      Nomis
    • RE: Electron NPM Error

      @DeanoAus

      Sorry to hear that.

      For me it worked with those dependencies fixed.

      pi@raspberrypi:~$ npm -v ; node -v
      4.1.2
      v7.7.1
      pi@raspberrypi:~$ cd MagicMirror/
      pi@raspberrypi:~/MagicMirror$ cd node_modules/
      pi@raspberrypi:~/MagicMirror/node_modules$ npm install electron
      
      > electron@1.6.6 postinstall /home/pi/MagicMirror/node_modules/electron
      > node install.js
      
      magicmirror@2.1.1 /home/pi/MagicMirror
      └── electron@1.6.6
      
      pi@raspberrypi:~/MagicMirror/node_modules$
      

      Here the thread I’ve been looking last night: https://github.com/electron/electron/issues/9324
      User: johannesjo made a fork: https://github.com/johannesjo/electron-prebuilt

      But what I did was to downgrade the extract-zip:

      pi@raspberrypi:~$ cd MagicMirror/
      pi@raspberrypi:~/MagicMirror$ cd node_modules/
      pi@raspberrypi:~/MagicMirror/node_modules$ npm uninstall extract-zip
      .
      .
      .
      pi@raspberrypi:~/MagicMirror/node_modules$ npm install extract-zip@1.6.0
      .
      .
      .
      pi@raspberrypi:~/MagicMirror/node_modules$ npm install electron
      

      As a result of all this:

      pi@raspberrypi:~/MagicMirror$ npm install
      
      > magicmirror@2.1.1 install /home/pi/MagicMirror
      > cd vendor && npm install
      
      magicmirror-vendors@ /home/pi/MagicMirror/vendor
      ├── font-awesome@4.7.0
      ├── moment@2.18.1
      ├── moment-timezone@0.5.13
      └── weathericons@2.1.0
      
      
      > magicmirror@2.1.1 postinstall /home/pi/MagicMirror
      > sh installers/postinstall/postinstall.sh
      
      MagicMirror installation successful!
      pi@raspberrypi:~/MagicMirror$
      

      Hope it helps

      posted in Troubleshooting
      NomisN
      Nomis
    • RE: Electron NPM Error

      https://forum.magicmirror.builders/topic/2460/magicmirror-fails-to-install-during-electron-installation

      posted in Troubleshooting
      NomisN
      Nomis
    • RE: Raspberri Pi Zero W moment is not defined.

      https://forum.magicmirror.builders/topic/2460/magicmirror-fails-to-install-during-electron-installation

      Tested both on Pi3 and Zero W

      posted in Troubleshooting
      NomisN
      Nomis
    • RE: MagicMirror fails to install during electron installation

      I’ve checked the thread where everyone reported the issue and right now they are on it.
      Good news tho for those without patience. It seems that other module is causing all this trouble: xtract-zip@1.6.1 to 1.6.4 is interfering with post install.

      To solve this:

      npm uninstall extract-zip
      npm install extract-zip@1.6.0
      npm install electron
      
      posted in Troubleshooting
      NomisN
      Nomis