Bugsounet_Coding();

    • Register
    • Login
    • Search

    Unsolved Getting errors when updating gateway

    Gateway
    3
    8
    46
    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.
    • K
      Kazzer last edited by

      Hi,

      Can you please help i get these’s errors (see below) when updating gateway.

      pi@raspberrypi:~ $ cd ~/MagicMirror/modules/Gateway
      npm run rebuild

      Gateway@3.2.0 rebuild /home/pi/MagicMirror/modules/Gateway
      installer/rebuild.sh

      Welcome to Gateway rebuild script
      This script will erase current build and reinstall it

      Deleting: package-lock.json node_modules
      Done.

      Upgrading Gateway…
      HEAD is now at b1de082 see logs
      hint: Pulling without specifying how to reconcile divergent branches is
      hint: discouraged. You can squelch this message by running one of the following
      hint: commands sometime before your next pull:
      hint:
      hint: git config pull.rebase false # merge (the default strategy)
      hint: git config pull.rebase true # rebase
      hint: git config pull.ff only # fast-forward only
      hint:
      hint: You can replace “git config” with “git config --global” to set a default
      hint: preference for all repositories. You can also pass --rebase, --no-rebase,
      hint: or --ff-only on the command line to override the configured default per
      hint: invocation.
      Already up to date.
      Done.
      Reinstalling Gateway…

      Gateway@3.2.0 preinstall /home/pi/MagicMirror/modules/Gateway
      installer/preinstall.sh

      Welcome to Gateway v3.2.0

      No root checking…
      Checking Gateway: pi/pi
      Checking MagicMirror: pi/pi

      Checking OS…
      OS Detected: linux-gnueabihf (raspbian 11 aarch64)

      Checking all dependencies…
      Updating package…
      Missing package: nginx
      Missing package: certbot
      Missing package: python-is-python3
      Missing package: python3-certbot-nginx
      Installing missing package…
      Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
      Hit:2 http://archive.raspberrypi.org/debian buster InRelease
      Hit:3 https://dtcooper.github.io/raspotify raspotify InRelease
      Hit:4 https://deb.nodesource.com/node_14.x buster InRelease
      Reading package lists… Done
      Reading package lists… Done
      Building dependency tree
      Reading state information… Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6+rpi1 is to be installed
      E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
      All Dependencies needed are installed !

      Installing all npm libraries…
      npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@3. I’ll try to do my best with it!
      npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
      npm ERR! code ENOTSUP
      npm ERR! notsup Unsupported engine for minify@9.2.0: wanted: {“node”:“>=16”} (current: {“node”:“14.21.3”,“npm”:“6.14.18”})
      npm ERR! notsup Not compatible with your version of node/npm: minify@9.2.0
      npm ERR! notsup Not compatible with your version of node/npm: minify@9.2.0
      npm ERR! notsup Required: {“node”:“>=16”}
      npm ERR! notsup Actual: {“npm”:“6.14.18”,“node”:“14.21.3”}

      npm ERR! A complete log of this run can be found in:
      npm ERR! /home/pi/.npm/_logs/2023-05-06T10_25_55_220Z-debug.log
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! Gateway@3.2.0 rebuild: installer/rebuild.sh
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the Gateway@3.2.0 rebuild script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      npm WARN Local package.json exists, but node_modules missing, did you mean to install?

      npm ERR! A complete log of this run can be found in:
      npm ERR! /home/pi/.npm/_logs/2023-05-06T10_25_55_319Z-debug.log

      Thank you

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by bugsounet

        Hi,

        I don’t think that it’s not really difficult to read an error 😕
        Error content says:
        npm ERR! notsup Unsupported engine for minify@9.2.0: wanted: {“node”:“>=16”} (current: {“node”:“14.21.3”,“npm”:“6.14.18”})

        It’s require:
        npm ERR! notsup Required: {“node”:“>=16”}

        You have:
        npm ERR! notsup Actual: {“npm”:“6.14.18”,“node”:“14.21.3”}

        On the other hand you don’t mind using packages designed to buster in bullseye !?
        OS Detected: linux-gnueabihf (raspbian 11 aarch64)

        Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
        Hit:2 http://archive.raspberrypi.org/debian buster InRelease
        Hit:3 https://dtcooper.github.io/raspotify raspotify InRelease
        Hit:4 https://deb.nodesource.com/node_14.x buster InRelease
        

        So you have this error: E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

        1 Reply Last reply Reply Quote 0
        • bugsounet
          bugsounet Main Coder last edited by bugsounet

          So… to solve:

          go to /etc/apt/sources.list.d directory

          0aff2bab-1b3c-4d1c-9043-389a31877a75-image.png

          1. edit raspi.list in sudo mode
            243fba72-4e48-4748-9c75-e93e932bf16a-image.png
            you must have deb http://archive.raspberrypi.org/debian/ bullseye main only
            image.png

          2. edit nodesource.list in sudo mode
            you must have:

          deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
          deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
          

          image.png

          1. when done:
          sudo apt-get update
          sudo apt-get upgrade
          

          and… past the result 😉

          1 Reply Last reply Reply Quote 0
          • K
            Kazzer last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • K
              Kazzer last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • K
                Kazzer last edited by Kazzer

                Hi,

                Thank you for the quick reply and help, i think this worked but now i have no toolbar in my raspberry os so cant open a terminal or get to file manager can you help with this? Merci.

                1 Reply Last reply Reply Quote 0
                • J
                  justaguy last edited by

                  This might be obvious but I’ll ask anyway…
                  Did you try to open the Terminal using the keyboard shortcut Ctrl + Alt + T?

                  1 Reply Last reply Reply Quote 0
                  • K
                    Kazzer last edited by

                    Yes i did but no menubar/toolbar

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB | @bugsounet ©2023