Read the statement by Michael Teeuw here.
npm ERR! Failed to parse json
npm ERR! No data, empty intput at 1:1
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?
npm installin the MagicMirror directory?
I follwed this tutorial exactly and it did not say anything about npm install where would execute that?
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 installin 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 installin the MagicMirror directory.
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.
Then go for manual or auto installation of magic mirror, it will get installed without any errors, so far it has worked for me.
This is right from the repo page
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.
the manual installation worked and I now have it up and running, thank you very much