MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

moving configfile and modules



  • Hello!

    My first question here but maybe not last.

    Problem: My rpi3b+ made a crash with a config of a magicmirror I was satisfied with.
    But I was in luck, I made a copy of the home>MagicMirror folder and saved it on my windows-laptop
    I made a fresh install of raspbian buster latest, and yesterday I installed a fresh image of Magicmirror.

    So everything is saved…I believe.

    Question: can I take the modules and everything from my copy of magicmirror that I saved and just drag n drop into the fresh copy of MagicMirror? Or I have to install the Modules again and, just copy the configfiles from the MMcopy. Or is it to start from beginning?

    I ask here first before doing things.
    Help Please…

    Greetings
    David.



  • @dnj0104 i think U can copy the module folders and the config file…

    you ‘should’ do

    rm -rf node_modules
    npm install 
    

    in any module folder that contains a package.json file to insure the various dependencies match the MM as it is installed now



  • @sdetweil

    @sdetweil said in moving configfile and modules:

    @dnj0104 i think U can copy the module folders and the config file…

    you ‘should’ do

    rm -rf node_modules
    npm install 
    

    in any module folder that contains a package.json file to insure the various dependencies match the MM as it is installed now

    hmm okey, I move modules and the the config.js fiel from old copy from my windows-pc to my rpi where i will run magicmirror

    After copiyng is made I run:

    rm -rf node_modules
    npm install

    to check if things is okey.
    ps Im a noob, so if you can please explain as I was five year old 🙂



  • @dnj0104 after copying the module folder

    as part of a module, they may use libraries, which are not installed by Magic Mirror

    the module instructions (mostly) say
    after git clone
    cd (change directory) into module folder
    then run npm install

    So, we need to replicate that

    the module files are there
    how do you know if u need to do this step

    if inside the module folder there is a file called package.json
    then we need to do the npm install, BUT we may have junk loaded already

    SO, we need to delete where the libs are stored, node_modules folder
    (we are IN the module folder, right)?

    # remove the libraries folder and all its contents
    rm -rf node_modules   
    # rebuild the library folder 
    npm install 
    

Log in to reply