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.

    used the amazing complete setup but after 'npm start'.....

    Scheduled Pinned Locked Moved Troubleshooting
    17 Posts 6 Posters 11.0k Views 4 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.
    • N Offline
      nuckinfutz @alonshwartz1966
      last edited by

      @alonshwartz1966 you either are tring to start the mirror from the root folder or you didn’t install node.js correctly I believe. I’m on my cell sorry I could give a better answer. I’ll check later tonight

      1 Reply Last reply Reply Quote 0
      • brobergB Offline
        broberg Project Sponsor
        last edited by

        Run the install script again.

        alonshwartz1966A 1 Reply Last reply Reply Quote 0
        • N Offline
          nem1
          last edited by

          please check if you had a stabile connection to the internet while running the install process of the mirror. just try it again if you are sure. Thix fixed my problem in the beginning

          alonshwartz1966A 1 Reply Last reply Reply Quote 0
          • A Offline
            Ancient
            last edited by

            I’ve got the same Problem.
            Fresh installation of Raspian on an Raspberry Pi3.

            Running the install Script again doesn’t help.

            brobergB 1 Reply Last reply Reply Quote 0
            • brobergB Offline
              broberg Project Sponsor @Ancient
              last edited by

              @Ancient said in used the amazing complete setup but after 'npm start'.....:

              I’ve got the same Problem.
              Fresh installation of Raspian on an Raspberry Pi3.

              Running the install Script again doesn’t help.

              Even if you remove the magicmirror folder before running it again?

              I had a similar issue (don’t know if it was exactly the same, since I didn’t save the log).
              It seems like the Electron.js is the issue, in my case it was missing for some reason, removing the magicmirror folder and running the install script again did the trick for me.

              1 Reply Last reply Reply Quote 0
              • A Offline
                Ancient
                last edited by

                Yep,
                deleteing as well as renaming the MagicMirror Folder won’t do the trick for me.
                Maybe it’s related to this Issue https://github.com/MichMich/MagicMirror/issues/567

                Where should the electron.js be located, i believe it’s missing here too.

                1 Reply Last reply Reply Quote 0
                • brobergB Offline
                  broberg Project Sponsor
                  last edited by

                  @Ancient said in used the amazing complete setup but after 'npm start'.....:

                  Yep,
                  deleteing as well as renaming the MagicMirror Folder won’t do the trick for me.
                  Maybe it’s related to this Issue https://github.com/MichMich/MagicMirror/issues/567

                  Where should the electron.js be located, i believe it’s missing here too.

                  In the magicmirror folder, node_modules and then electron or electron-prebuilt

                  maybe try to install it manually?

                  npm install electron --save-dev

                  1 Reply Last reply Reply Quote 0
                  • brobergB Offline
                    broberg Project Sponsor
                    last edited by

                    also, are you all running the X GUI or are you trying to start it directly from the prompt it boots in to?

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      Ancient
                      last edited by

                      I try to start it directly from the prompt

                      npm install electron --save-dev

                      electron@1.4.12 postinstall /home/pi/MagicMirror/node_modules/electron
                      node install.js

                      magicmirror@2.0.0 /home/pi/MagicMirror
                      ├── electron@1.4.12
                      └── UNMET PEER DEPENDENCY grunt@1.0.1

                      npm WARN grunt-yamllint@0.2.0 requires a peer of grunt@~0.4.0 but none was installed.

                      1 Reply Last reply Reply Quote 0
                      • alonshwartz1966A Offline
                        alonshwartz1966 @broberg
                        last edited by

                        @broberg the install of what? the entire process of the MagicMirrir?

                        brobergB 1 Reply Last reply Reply Quote 0
                        • alonshwartz1966A Offline
                          alonshwartz1966 @nem1
                          last edited by

                          @nem1 thanks for the feedback. My connection was OK during the installation

                          1 Reply Last reply Reply Quote 0
                          • brobergB Offline
                            broberg Project Sponsor @alonshwartz1966
                            last edited by

                            @alonshwartz1966

                            Yes, remove the entire magicmirror folder and run the install script again, for me the script stopped (without errors) several times,

                            Also, when you are trying to start it, do you try to start it via the LXterminal in the desktop environment or directly in the boot prompt?

                            alonshwartz1966A 1 Reply Last reply Reply Quote 0
                            • H Offline
                              Heretic
                              last edited by Heretic

                              I get a very similar error if I’m just running at the CLI. With the GUI running NPM START (from a local terminal window) is successful, I never did get it going from CLI.

                              I also never got PM2 to successfully work without manually kicking it off after the gui has launched.

                              I’ve taken about 4 runthroughs at the install, so at this point I’ve no idea what the issue is.

                              pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start

                              magicmirror@2.0.0 start /home/pi/MagicMirror
                              electron js/electron.js

                              npm ERR! Linux 4.4.32-v7+
                              npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start”
                              npm ERR! node v6.9.1
                              npm ERR! npm v4.0.2
                              npm ERR! code ELIFECYCLE
                              npm ERR! magicmirror@2.0.0 start: electron js/electron.js
                              npm ERR! Exit status 1
                              npm ERR!
                              npm ERR! Failed at the magicmirror@2.0.0 start script ‘electron js/electron.js’.
                              npm ERR! Make sure you have the latest version of node.js and npm installed.
                              npm ERR! If you do, this is most likely a problem with the magicmirror package,
                              npm ERR! not with npm itself.
                              npm ERR! Tell the author that this fails on your system:
                              npm ERR! electron js/electron.js
                              npm ERR! You can get information on how to open an issue for this project with:
                              npm ERR! npm bugs magicmirror
                              npm ERR! Or if that isn’t available, you can get their info via:
                              npm ERR! npm owner ls magicmirror
                              npm ERR! There is likely additional logging output above.

                              npm ERR! Please include the following file with any support request:
                              npm ERR! /home/pi/MagicMirror/npm-debug.log

                              1 Reply Last reply Reply Quote 0
                              • N Offline
                                nuckinfutz
                                last edited by

                                Here is what I would do as I’ve been in your shoes’

                                This is how I do it and I’ve done it close to 50 times.

                                Ignore everyone else for now. You will be starting from scratch. Again.

                                Go here and follow the Noobs install procedure. You want the full Noobs NOT Noobs Lite

                                https://www.raspberrypi.org/downloads/noobs/

                                When you boot this choose the first option (raspian) After it finishes
                                Dont add users or change anything else leave all defaults with the exception of the following

                                Make sure you set your localization, keyboard, wireless etc. by going to

                                Preferences -> Raspberry Pi Configuration

                                Open a terminal session
                                Your prompt should look like the following

                                pi@raspberrypi:~ $

                                copy and paste the following into a terminal. This is one line. accept any defaults if a question comes up.

                                curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash

                                Now Copy and paste

                                cd /home/pi/MagicMirror

                                DISPLAY=:0 npm start dev

                                If you dont want the Console running omit “dev” from the end

                                I always start the MM using this method.

                                alonshwartz1966A 1 Reply Last reply Reply Quote 0
                                • alonshwartz1966A Offline
                                  alonshwartz1966 @nuckinfutz
                                  last edited by

                                  @nuckinfutz Hi. Thanks for the instructions. I’ve managed to run the MagicMirror. Now I just need to work on adjustments.

                                  1 Reply Last reply Reply Quote 0
                                  • alonshwartz1966A Offline
                                    alonshwartz1966 @broberg
                                    last edited by

                                    @broberg Hi. Thanks for the instructions. I’ve managed to run the MagicMirror. Now I just need to work on adjustments.

                                    1 Reply Last reply Reply Quote 0

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better 💗

                                    Register Login
                                    • 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