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.

    Can't find "scripts" field in /MagicMirror/modules/MMM-Todoist/package.json

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    9 Posts 2 Posters 45 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
      DarthWerner
      last edited by

      Hi Community,

      I’m having some trouble with my Todoist Module in MM since iI updated The module this week. MM and the Module itself are the latest release version and I get this message after my update:

      Can’t find “scripts” field in /MagicMirror/modules/MMM-Todoist/package.json

      Anyone else having problems like this?

      Would be happy to get some help with this .

      Thank you in advance

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @DarthWerner
        last edited by sdetweil

        @DarthWerner can you tell us WHEN you get that message?
        during npm install?

        If so, edit package.json

        And add this before the “dependencies”: line

        "scripts":{},
        

        Also can you show the output of

        node -v
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          DarthWerner @sdetweil
          last edited by

          Thank you Sam,

          I did it like this:

          “homepage”: “https://github.com/cbrooker/MMM-Todoist#readme”,
          “scripts”:{},
          “dependencies”: {
          “axios”: “^1.6.0”,
          “showdown”: “^2.0.1”

          and it tells me now that the install-mmm is missing.

          *wb@MagicMirror:~/MagicMirror/modules/MMM-Todoist $ sudo git pull && node --run install-mm
          Already up to date.
          Missing script: “install-mm” for /home/wb/MagicMirror/modules/MMM-Todoist/package.json

          Available scripts are:

          wb@MagicMirror:~/MagicMirror/modules/MMM-Todoist $ node -v
          v22.14.0*

          All I did was a Module Update as I did many times before.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @DarthWerner
            last edited by

            @DarthWerner

            node --run install-mm

            Is for MagicMirror itself, not a module

            For a module it would be

            git pull && npm install 
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              DarthWerner @sdetweil
              last edited by

              @sdetweil said in Can't find "scripts" field in /MagicMirror/modules/MMM-Todoist/package.json:

              git pull && npm install

              Thank you Sam,

              I think we’re running into a version problem:

              *```
              npm error code EBADENGINE
              npm error engine Unsupported engine
              npm error engine Not compatible with your version of node/npm: magicmirror@2.34.0
              npm error notsup Not compatible with your version of node/npm: magicmirror@2.34.0
              npm error notsup Required: {“node”:“>=22.21.1 <23 || >=24”}
              npm error notsup Actual: {“npm”:“11.3.0”,“node”:“v22.14.0”}

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @DarthWerner
                last edited by

                @DarthWerner but you are supposed to be in the module folder

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  DarthWerner @sdetweil
                  last edited by

                  @sdetweil

                  Yes, I’ve been in the modules folder when I did the git pull and npm install.

                  S 2 Replies Last reply Reply Quote 0
                  • S Offline
                    sdetweil @DarthWerner
                    last edited by

                    @DarthWerner in the MMM-Todoist folder right?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @DarthWerner
                      last edited by

                      @DarthWerner but I think you may have messed up MagicMirror

                      Use my upgrade script with force instead of apply as the parm

                      See https://github.com/sdetweil/MagicMirror_scripts

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        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