• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

moving configfile and modules

Scheduled Pinned Locked Moved Troubleshooting
copy config modules old t
4 Posts 2 Posters 542 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    dnj0104
    last edited by Oct 15, 2020, 7:08 PM

    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.

    S 1 Reply Last reply Oct 15, 2020, 7:13 PM Reply Quote 0
    • S Away
      sdetweil @dnj0104
      last edited by Oct 15, 2020, 7:13 PM

      @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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Oct 15, 2020, 7:31 PM Reply Quote 0
      • D Offline
        dnj0104 @sdetweil
        last edited by dnj0104 Oct 15, 2020, 7:35 PM Oct 15, 2020, 7:31 PM

        @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 :)

        S 1 Reply Last reply Oct 15, 2020, 7:58 PM Reply Quote 0
        • S Away
          sdetweil @dnj0104
          last edited by Oct 15, 2020, 7:58 PM

          @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 
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            3/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy