Read the statement by Michael Teeuw here.
Cannot restart my mirror for months
-
Please help, I have been trying to get my mirror fixed after my last upgrade. I have searched this site and others areas but cannot find the solution. Can anyone help make my mirror come back to life?
This is the error messages are get when trying to start my mirror. Sorry in advance if this is easy for someone to fix.
pi@raspberrypi:~/Documents/MagicMirrorJan2021 $ npm start
npm ERR! Linux 5.10.63-v7+
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! file /home/pi/Documents/MagicMirrorJan2021/package.json
npm ERR! code EJSONPARSEnpm ERR! Failed to parse json
npm ERR! Unexpected token ‘/’ at 7:41
npm ERR! “start”: “DISPLAY=”${DISPLAY:=:0}“”./node_modules/.bin/electron js/electron
npm ERR! ^
npm ERR! File: /home/pi/Documents/MagicMirrorJan2021/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse -
@sdetweil I managed to update it finally. Now I just have a black screen to fix to show my modules, so it feels close 😁
-
@richardh151 said in Cannot restart my mirror for months:
Unexpected token ‘/’ at 7:41
Check your package.json file. Theres something wrong, probably at line 7.
-
npm ERR! node v6.11.0
npm ERR! npm v3.10.10your node and npm are way down level
we are currently requiring node 14 and npm 6
if you use my MagicMirror upgrade script it will also upgrade node and npm
see
https://github.com/sdetweil/MagicMirror_scriptsBUT the upgrade script only works if mm is installed in ~/MagicMirror
a quick workaround would be to create a linked folder
cd ~ ln -s realpath MagicMirror
where realpath for you is Documents/MagicMirrorJan2021
u can delete the linked folder after the update
note update is a 2 part process.
1st is a test run to see if there will be issues
2nd does the update,big u use the apply parmbut it will upgrade node/npm on the 1st pass
-
I have tried your suggestions but it seems I’m struggling to update npm and node js versions. I continue to obtain an error message related to electron-chromedriver @13.0.0 install script.
Does anyone have any suggestions, please ?
-
-
@richardh151 what pi is this?
-
@richardh151 Pi 3 Model B+
-
@sdetweil does not work as my permission was denied ( code EACCES)
-
@sdetweil I managed to update it finally. Now I just have a black screen to fix to show my modules, so it feels close 😁
-
@sdetweil now Iam back and fully operational again. A huge thanks to you 👍😊