Module update



  • I’m afraid this is a newbie question but after long time searching and nothing found I need to ask. My MagicMirror shows there is an update for the MMM-Traffic module but I don’t know how to update this module. Does anyone have an advice or the correct SSH command to update?



  • Navigate to your module folder:
    § cd ~/MagicMirror/modules/MMM-Traffic
    use command to pull new git from:
    § git pull

    If you are experiencing the following message “your local changes to the following files would be overwritten by merge” because you have done local edits run this before (NOTE! backup the files you have edited in case you will need to pull some edits back, for exampel the CSS file if you have customized the look of the module:
    § git reset --hard

    Im not sure but someone can please correct me in on this one:
    Sometime you will need to install after git pull by:
    § npm install
    (This also inside the module folder)

    Is not needed, edited out



  • Thank you for your advice, after following your instructions (git pull AND npm install) everything looks okay now and my mirror is up to date :-)



  • @MM-Hans I have updated my post, npm install is not needed. Also added some more information that you may need to now.



  • @Nystro0m Thanks again!


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.