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.

    MMM-Pir

    Scheduled Pinned Locked Moved Solved Troubleshooting
    34 Posts 5 Posters 4.3k Views 6 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.
    • G Offline
      gonzonia @sdetweil
      last edited by

      @sdetweil I did that and I still get the same problem. How do I make sure it uses the correct version?

      pi@MagicMirror:~/MagicMirror/modules/MMM-Pir $ sudo npm install n -g
      
      added 1 package in 5s
      pi@MagicMirror:~/MagicMirror/modules/MMM-Pir $ sudo n 20
           copying : node/20.18.0
         installed : v20.18.0 (with npm 10.8.2)
      
      
      
      npm error code EBADENGINE
      npm error engine Unsupported engine
      npm error engine Not compatible with your version of node/npm: MMM-Pir@2.0.0
      npm error notsup Not compatible with your version of node/npm: MMM-Pir@2.0.0
      npm error notsup Required: {"node":">=20.9.0 <21 || >=22"}
      npm error notsup Actual:   {"npm":"10.9.0","node":"v21.7.1"}
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @gonzonia
        last edited by

        @gonzonia said in MMM-Pir:

        {“npm”:“10.9.0”,“node”:“v21.7.1”}

        you may have to close and open new shell
        or do

        hash -r
        

        to update the path

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        G 1 Reply Last reply Reply Quote 0
        • G Offline
          gonzonia @sdetweil
          last edited by

          @sdetweil Okay.
          I’ve run

          sudo npm install n -g
          sudo n 20
          hash -r
          

          then closed the terminal and reconnected.
          Went back into the MMM-Pir directory and tried running the setup again.
          Same problem

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

            @gonzonia node -v
            returns what?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            G 1 Reply Last reply Reply Quote 0
            • G Offline
              gonzonia @sdetweil
              last edited by

              @sdetweil

              pi@MagicMirror:~ $ node -v 
              v21.7.1
              
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @gonzonia
                last edited by

                @gonzonia weird… how did you upgrade to node 21?
                apt or nvm?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                G 1 Reply Last reply Reply Quote 1
                • G Offline
                  gonzonia @sdetweil
                  last edited by

                  @sdetweil Honestly, I don’t remember. I think I installed nvm at one point to fix something else but I do run apt regularly to update everything

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

                    @gonzonia do nvm -v

                    n and nvm do the same thing
                    nvm is a bash script
                    n is a javascript app

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    G 1 Reply Last reply Reply Quote 0
                    • G Offline
                      gonzonia @sdetweil
                      last edited by

                      @sdetweil

                      $ nvm -v
                      0.39.7
                      
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @gonzonia
                        last edited by

                        @gonzonia ok, so you have nvm too

                        sudo nvm i 20

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        G 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 2 / 4
                        • 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