Read the statement by Michael Teeuw here.
Node/ npm error? Blank magicmirror. Please help - desperate, frustrated and grateful for the right direction
-
Was it working ever? If npm is v1 then you are seriously down level and should upgrade that.
If it was working and stopped after an addition then remove/comment out that addition.
It could be one of the modules you installed. You could disable all and turn them on one by one to determine which (if any) is causing the issue.
Frankly, I would use @sdetweil’s installer script. It really is the best option and he fully supports it. It has saved many a user and I have found it quite useful. I dare say that everyone here would say the same and recommend it.
You’ll find the url here
https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer -
@nakulbende @Mykle1 I agree. lets back up and start with the default config and then add one module at a time…
so, rename your config.js
cd ~/MagicMirror/config mv config.js config.js.save cp config.js.sample config.js
and then start the mirror
again:
now, pic one module,
copy the module section from the config.js.save to the config.jsrestart the mirror… verify
save config.jsgo to again
many modules cannot be used more than once without special handling…
so don’t do two of anything yetmmm-buller only documents one dependency
“googleapis” : “>=33.0.0”so, do that manually
from the mmm-buller folder do
npm install googleapis@33.0.0I don’t think u have to reinstall the base…
let me know
-
@Mykle1 How do you update npm - when I do this, would I have to run
npm install
in each module folder again?The mirror works with default configuration just fine. I will try disabling them one by one.
I did use the usual script
bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
. How is @sdetweil’s script different? -
Thanks all - I will install dependencies and try to add modules one by one. Is there a way to backup my installation if I do decide to reinstall using @sdetweil 's script? Would just copying the whole ~/MagicMirror folder work?
-
@nakulbende the one you used hasn’t been updated in quite some time…
quite a few things have changed…my scipt, which will replace the current one on next release, has been updated and tested for about 6 months.
see here
https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installerthere is also a new version update script, that will help migrate from one MM release to another…
see here https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testingto ‘backup’. just rename the MagicMirror folder, no copy, no delete…
-
@nakulbende install assumes that NO previous installation exists…so, no MagicMirror folder.
the installer and updater both create log files so we can see what happened at the time.
the original does not -
@nakulbende said in Node/ npm error? Blank magicmirror. Please help - desperate, frustrated and grateful for the right direction:
How do you update npm - when I do this, would I have to run npm install in each module folder again?
I see @sdetweil has been in contact with you. You’re in good hands. Follow his directions and advice. I’m pretty sure his installer will install the correct versions of node and npm so you won’t have to do anything regarding that. Any modules you install after that (that require dependencies) will need you run
npm install
in their respective folders. -
@sdetweil - your script worked flawlessly, and everything just works. I have a few kinks to sort out but it is looking like i can finish my wife’s gift before christmas after all. I can’t thank you enough!
:folded_hands_medium_skin_tone: :person_bowing_medium_skin_tone:
Thank you all for pointing me in the right direction!
-
@nakulbende cool… glad it helped…
come on back if you find some other problem!
-
@nakulbende oh, great you sorted it out! My recommendation on Reddit to join this forum was not that bad😁. Another happy builder on bord!