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

install script fail error

Scheduled Pinned Locked Moved Troubleshooting
installation errornpm issues
4 Posts 3 Posters 749 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.
  • H Offline
    HALPi-Thousand
    last edited by Jan 23, 2022, 10:25 PM

    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 Jan 23, 2022, 10:47 PM Reply Quote 0
    • S Offline
      sdetweil @HALPi-Thousand
      last edited by sdetweil Jan 23, 2022, 10:48 PM Jan 23, 2022, 10:47 PM

      @halpi-thousand use my install script,
      see

      https://github.com/sdetweil/MagicMirror_scripts

      have to delete the MagicMirror folder

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S M 2 Replies Last reply Jan 23, 2022, 10:56 PM Reply Quote 1
      • S Offline
        sdetweil @sdetweil
        last edited by Jan 23, 2022, 10:56 PM

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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @sdetweil
          last edited by Jan 24, 2022, 1:48 AM

          @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
          1 / 1
          • First post
            2/4
            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