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

ReferenceError: primordials is not defined

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 3 Posters 1.1k 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.
  • B Offline
    bwente
    last edited by Oct 1, 2023, 10:28 PM

    I tried to upgrade using an upgrade script.

    evalmachine.<anonymous>:43
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:43:5
        at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        at Module._compile (node:internal/modules/cjs/loader:1233:14)
        at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
        at Module.load (node:internal/modules/cjs/loader:1091:32)
        at Module._load (node:internal/modules/cjs/loader:938:12)
        at Module.require (node:internal/modules/cjs/loader:1115:19)
        at require (node:internal/modules/helpers:130:18)
        at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1233:14)
    
    Node.js v20.5.1
    
    S 1 Reply Last reply Oct 2, 2023, 3:04 AM Reply Quote 0
    • S Offline
      sdetweil @bwente
      last edited by Oct 2, 2023, 3:04 AM

      @bwente please upgrade to 20.8.0

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 1 Reply Last reply Oct 2, 2023, 5:12 AM Reply Quote 0
      • B Offline
        BKeyport Module Developer @sdetweil
        last edited by BKeyport Oct 2, 2023, 5:56 AM Oct 2, 2023, 5:12 AM

        @sdetweil Running into the same thing with Node.js 20.8.0 on other platforms, to try and get around other issues.

        Confirmed on brand new Pi install - the install scripts fail as described. With the upgrade script failing too - there’s SOMETHING majorly wrong.

        Issue 69 on your github for scripts contains my install.log for that attempt.

        The "E" in "Javascript" stands for "Easy"

        S 1 Reply Last reply Oct 2, 2023, 6:52 PM Reply Quote 0
        • B Offline
          bwente
          last edited by Oct 2, 2023, 12:39 PM

          I tried to do a simple update that did not work.

          This fixed it. https://github.com/nodesource/distributions/blob/master/README.md

          I also lost electron somehow, once that was installed everything is back. Thank you.

          S 1 Reply Last reply Oct 2, 2023, 12:47 PM Reply Quote 1
          • S Offline
            sdetweil @bwente
            last edited by Oct 2, 2023, 12:47 PM

            @bwente thank you

            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 @BKeyport
              last edited by Oct 2, 2023, 6:52 PM

              @BKeyport try the upgrade script again, with force instead of apply

              it will remove and and add the right version of node the right way, including on buster

              please advise your results

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • G gonzonia referenced this topic on Oct 5, 2023, 3:36 PM
              • 1 / 1
              1 / 1
              • First post
                4/6
                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