• 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.

Unable to update modules

Scheduled Pinned Locked Moved Troubleshooting
20 Posts 3 Posters 2.8k Views 3 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.
  • S Away
    sdetweil
    last edited by May 11, 2020, 3:10 AM

    @KumarTRD said in Unable to update modules:

    package-lock.json

    erase the package-lock.json and then git pull again, and npm install

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    K 1 Reply Last reply May 11, 2020, 3:30 AM Reply Quote 0
    • K Offline
      KumarTRD @sdetweil
      last edited by May 11, 2020, 3:30 AM

      @sdetweil I’ve tired to run rm package-lock.json but tells me there is no active directory.

      S 1 Reply Last reply May 11, 2020, 3:31 AM Reply Quote 0
      • S Away
        sdetweil @KumarTRD
        last edited by May 11, 2020, 3:31 AM

        @KumarTRD you are in the module folder, right?

        cd  ~/MagicMirror/modules/MMM-Todoist 
        rm package-lock.json
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply May 11, 2020, 3:33 AM Reply Quote 0
        • S Away
          sdetweil
          last edited by sdetweil May 11, 2020, 3:33 AM May 11, 2020, 3:32 AM

          this file is rebuilt each time by npm install
          but it is also included in the git repo for this module, it should not be

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply May 11, 2020, 3:35 AM Reply Quote 0
          • K Offline
            KumarTRD @sdetweil
            last edited by May 11, 2020, 3:33 AM

            @sdetweil correct Sam but do I run the rm package-lock.json in the module folder or in cd /MagicMirror folder? I haven’t tried it in the module folder

            S 1 Reply Last reply May 11, 2020, 3:33 AM Reply Quote 0
            • S Away
              sdetweil @KumarTRD
              last edited by May 11, 2020, 3:33 AM

              @KumarTRD said in Unable to update modules:

              rm package-lock.json in the module folder

              in the module folder, thats where you were when u got the error

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              K 1 Reply Last reply May 11, 2020, 3:39 AM Reply Quote 0
              • K Offline
                KumarTRD @sdetweil
                last edited by May 11, 2020, 3:35 AM

                @sdetweil it looks like it’s present in all my modules because I get the same error when attempting to up those as well and my MagicMirror software as well. Any way to complete remove it ?

                S 2 Replies Last reply May 11, 2020, 3:36 AM Reply Quote 0
                • S Away
                  sdetweil @KumarTRD
                  last edited by sdetweil May 11, 2020, 3:36 AM May 11, 2020, 3:36 AM

                  @KumarTRD every module that has a package.json file and uses the step npm install will have a lock file.
                  but as I said, it should NOT have been included in the git package, because it produces this error, and prevents users from moving forward

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  K 1 Reply Last reply May 11, 2020, 3:41 AM Reply Quote 0
                  • K Offline
                    KumarTRD @sdetweil
                    last edited by May 11, 2020, 3:39 AM

                    @sdetweil ok I’ll give it a try thanks for your assistance.

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      KumarTRD @sdetweil
                      last edited by May 11, 2020, 3:41 AM

                      @sdetweil any way to remove it manually?

                      S 1 Reply Last reply May 11, 2020, 3:42 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        6/20
                        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