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.jsand 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 installin 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 installin 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!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better š
Register Login