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

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

Scheduled Pinned Locked Moved Solved Troubleshooting
12 Posts 5 Posters 5.2k 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.
  • S Offline
    sdetweil @myayo001
    last edited by Jan 11, 2025, 8:52 PM

    @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 B 2 Replies Last reply Jan 11, 2025, 8:57 PM Reply Quote 0
    • M Offline
      myayo001 @sdetweil
      last edited by Jan 11, 2025, 8:57 PM

      @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
      • B Offline
        bugsounet Banned @sdetweil
        last edited by bugsounet Jan 11, 2025, 9:06 PM Jan 11, 2025, 9:04 PM

        @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 Jan 11, 2025, 9:12 PM Reply Quote 0
        • M Offline
          myayo001 @bugsounet
          last edited by Jan 11, 2025, 9:12 PM

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

          Mirror $ node -v

          v20.18.1

          K 1 Reply Last reply Jan 11, 2025, 11:29 PM Reply Quote 0
          • K Offline
            KristjanESPERANTO Module Developer @myayo001
            last edited by Jan 11, 2025, 11:29 PM

            @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 Jan 12, 2025, 12:10 PM

              merci ca fonctionne maintenant!

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