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.

    Cannot find module 'node-fetch' error with multiple MM modules

    Scheduled Pinned Locked Moved Solved Troubleshooting
    12 Posts 5 Posters 5.6k Views 5 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.
    • M Offline
      myayo001 @blackbull
      last edited by

      @blackbull j’ai le meme soucis. quand tu dis le dossier spécifique du module, c’est par exemple dans MMM-moonraker ou dans MMM-moonraker/node_modules?

      Merci d’avance.

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

        @myayo001 did you see this above

        https://forum.magicmirror.builders/post/111396

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M bugsounetB 2 Replies Last reply Reply Quote 0
        • M Offline
          myayo001 @sdetweil
          last edited by

          @sdetweil oui j’ai vu le post je dois installer npm install node-fetch@2
          je l’ai installer dans le dossier MMM-moonraker et j’ai toujours l’erreur

          1 Reply Last reply Reply Quote 0
          • bugsounetB Offline
            bugsounet Banned @sdetweil
            last edited by bugsounet

            @sdetweil cela arrive quand la version principale de node est v10.x et que l’utilisateur demande la version v20 ou v22 avec la commande n

            généralement resolu avec la version principale de node en v20. ensuite on peux utiliser n comme on a envie

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              myayo001 @bugsounet
              last edited by

              @bugsounet je n 'ai pas trop compris ce que je devais faire.
              mais j’ai bien node v20

              Mirror $ node -v

              v20.18.1

              KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
              • KristjanESPERANTOK Offline
                KristjanESPERANTO Module Developer @myayo001
                last edited by

                @myayo001 Just remove the the line const fetch = require("fetch"); in the file node-helper.js in the module’s directory.

                1 Reply Last reply Reply Quote 1
                • M Offline
                  myayo001
                  last edited by

                  merci ca fonctionne maintenant!

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