• 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.

npm start

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 3 Posters 5.7k 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 Sep 19, 2017, 2:37 AM

    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?

    M 1 Reply Last reply Sep 19, 2017, 2:47 AM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @dannymaclean98
      last edited by Sep 19, 2017, 2:47 AM

      @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 Sep 19, 2017, 2:56 AM

        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?

        M 1 Reply Last reply Sep 19, 2017, 3:08 AM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @dannymaclean98
          last edited by Mykle1 Sep 19, 2017, 3:09 AM Sep 19, 2017, 3:08 AM

          @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 Sep 19, 2017, 7:56 PM Reply Quote 0
          • P Offline
            plybz18
            last edited by plybz18 Sep 19, 2017, 9:34 AM Sep 19, 2017, 9:33 AM

            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.

            M 1 Reply Last reply Sep 19, 2017, 11:19 AM Reply Quote 1
            • M Offline
              Mykle1 Project Sponsor Module Developer @plybz18
              last edited by Sep 19, 2017, 11:19 AM

              @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 Sep 19, 2017, 7:56 PM

                @Mykle1 Hi

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

                M 1 Reply Last reply Sep 19, 2017, 7:58 PM Reply Quote 1
                • M Offline
                  Mykle1 Project Sponsor Module Developer @dannymaclean98
                  last edited by Sep 19, 2017, 7:58 PM

                  @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
                  1 / 1
                  • First post
                    1/8
                    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