Unsolved Getting errors when updating gateway
-
Hi,
Can you please help i get these’s errors (see below) when updating gateway.
pi@raspberrypi:~ $ cd ~/MagicMirror/modules/Gateway
npm run rebuildGateway@3.2.0 rebuild /home/pi/MagicMirror/modules/Gateway
installer/rebuild.shWelcome to Gateway rebuild script
This script will erase current build and reinstall itDeleting: 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.shWelcome to Gateway v3.2.0
No root checking…
Checking Gateway: pi/pi
Checking MagicMirror: pi/piChecking 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.logThank you
-
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
inbullseye
!?
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.
-
So… to solve:
go to
/etc/apt/sources.list.d
directory-
edit
raspi.list
in sudo mode
you must havedeb http://archive.raspberrypi.org/debian/ bullseye main
only
-
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
- when done:
sudo apt-get update sudo apt-get upgrade
and… past the result
-
-
This post is deleted! -
This post is deleted! -
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.
-
This might be obvious but I’ll ask anyway…
Did you try to open the Terminal using the keyboard shortcut Ctrl + Alt + T? -
Yes i did but no menubar/toolbar