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.

    npm start

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 3 Posters 5.8k Views 3 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.
    • D Offline
      dannymaclean98
      last edited by

      npm ERR! Failed to parse json
      npm ERR! No data, empty intput at 1:1
      npm ERR!
      npm ERR! ^
      npm ERR! File: /home/pi/MagicMirror/package.json
      npm ERR! this is not a bug in npm.
      npm ERR! Tell the package author to fix their package.json file. JSON.parse

      new to raspberry pi (: it appears that MagicMirror downloaded properly but I can’t get it to run. Any suggestions?

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @dannymaclean98
        last edited by

        @dannymaclean98

        You ran npm install in the MagicMirror directory?

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • D Offline
          dannymaclean98
          last edited by

          https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/6

          I follwed this tutorial exactly and it did not say anything about npm install where would execute that?

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @dannymaclean98
            last edited by Mykle1

            @dannymaclean98

            The automatic installer command bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)" does not always complete, for whatever reason. Included in that script is updating dependencies (npm install) in the MagicMirror directory. I don’t know if this is the case for you but you could try running npm install in your MagicMirror directory. If that does not help, please paste ALL of your terminal output when attempting to run the mirror.

            I don’t use the automatic installer for this very reason. I only do manual installations so I don’t encounter that. All it requires is downloading the MM software from github instead of using the automatic script and running npm install in the MagicMirror directory.

            Create a working config
            How to add modules

            D 1 Reply Last reply Reply Quote 0
            • P Offline
              plybz18
              last edited by plybz18

              Re: npm start

              It happened to me, the auto install does not always complete successfully, then after reading lot of articles on pi magazine, found out that we need to install few packages before we go for manual or auto installation and so far it has worked for me like thrice.

              After installing Raspbian follow the below link, install node.js using a package manager, follow all the steps make sure everything installs successfully.

              https://github.com/cncjs/cncjs/wiki/Raspberry-Pi-Setup-Guide

              Then go for manual or auto installation of magic mirror, it will get installed without any errors, so far it has worked for me.

              Mykle1M 1 Reply Last reply Reply Quote 1
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @plybz18
                last edited by

                @plybz18 @dannymaclean98

                This is right from the repo page

                Manual Installation

                Download and install the latest Node.js version.
                Clone the repository and check out the master branch: git clone https://github.com/MichMich/MagicMirror
                Enter the repository: cd ~/MagicMirror
                Install and run the app: npm install && npm start
                Important: npm start does not work via SSH, use DISPLAY=:0 nohup npm start & instead. This starts the mirror on the remote display.

                Note: if you want to debug on Raspberry Pi you can use npm start dev which will start the MagicMirror app with Dev Tools enabled.

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dannymaclean98 @Mykle1
                  last edited by

                  @Mykle1 Hi

                  the manual installation worked and I now have it up and running, thank you very much

                  Mykle1M 1 Reply Last reply Reply Quote 1
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @dannymaclean98
                    last edited by

                    @dannymaclean98 said in npm start:

                    the manual installation worked and I now have it up and running, thank you very much

                    That’s fantastic!

                    You’re welcome. :^)

                    Create a working config
                    How to add modules

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