MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    install script fail error

    Troubleshooting
    installation error npm issues
    3
    4
    266
    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.
    • H
      HALPi-Thousand last edited by

      Hi -
      I’ve been trying to install Magic Mirror. I’m on a Pi 4B, running Buster because the more recent update doesn’t seem to get along too well right now.

      I’ve installed it, had to delete and start again because something somewhere went wrong in the last install, or maybe somewhere along the way when I tried changing a compliment or hte weather settings or something.

      ANyway, now I keep getting this error:

      Failed at the playwright@1.17.1 install script

      the full text looks like this:

      pi@HALpiThousand:~/MagicMirror $ npm install
      npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
      
      > playwright@1.17.1 install /home/pi/MagicMirror/node_modules/playwright
      > node install.js
      
      internal/util.js:220
          throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'original', 'Function');
          ^
      
      TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type Function
          at promisify (internal/util.js:220:11)
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/playwright-core/node_modules/extract-zip/index.js:11:18)
          at Module._compile (module.js:649:30)
          at Object.Module._extensions..js (module.js:660:10)
          at Module.load (module.js:561:32)
          at tryModuleLoad (module.js:501:12)
          at Function.Module._load (module.js:493:3)
          at Module.require (module.js:593:17)
          at require (internal/module.js:11:18)
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/playwright-core/lib/utils/browserFetcher.js:9:42)
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
      
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! playwright@1.17.1 install: `node install.js`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the playwright@1.17.1 install script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2022-01-23T22_07_13_111Z-debug.log
      
      

      So, obviously something somewhere is going screwy. I don’t know what or where, and not exactly being a master coder - more on the complete opposite end of that skill scale - even if I did in some vague way, I would have no idea why probably or what to do to make it behave.

      That said, I can follow directions as easily as the next above-average IQ guy, so… Does anyone have an idea of what the problem is, and how I might fix it?

      thanks

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @HALPi-Thousand last edited by sdetweil

        @halpi-thousand use my install script,
        see

        https://github.com/sdetweil/MagicMirror_scripts

        have to delete the MagicMirror folder

        Sam

        Create a working config
        How to add modules

        S Mykle1 2 Replies Last reply Reply Quote 1
        • S
          sdetweil @sdetweil last edited by

          @sdetweil and maybe use my MMM-Config module which presents a form for config.
          https://github.com/sdetweil/MMM-Config

          Sam

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • Mykle1
            Mykle1 Project Sponsor Module Developer @sdetweil last edited by

            @sdetweil said in install script fail error:

            use my install script,

            This install script is a godsend. Installing any other way is just, uh, … silly?

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy