sdetweil / MagicMirror_scripts

Magic Mirror installation and setup scripts
360 stars 64 forks source link

unable to install dependencies #45

Closed Slaton87 closed 2 years ago

Slaton87 commented 2 years ago

Hi, I tried running this on my pi and at the end it is unable to install dependencies. Any help on fixing this would be greatly appreciated.

From terminal: Installing dependencies ... bash: line 412: npm: command not found Unable to install dependencies!

Install Log: Reading package lists... Building dependency tree... Reading state information... build-essential is already the newest version (12.9). curl is already the newest version (7.74.0-1.3+deb11u1). git is already the newest version (1:2.30.2-1). unzip is already the newest version (6.0-26). wget is already the newest version (1.21-1+deb11u1). wget set to manually installed. You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: nodejs : Depends: libnode72 (= 12.22.5~dfsg-2~11u1) but it is not going to be installed Updating packages ... Hit:1 https://deb.nodesource.com/node_16.x bullseye InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... apt-get update completed ok apt-get upgrade started apt upgrade result =rc=127 Check current Node installation ... Node currently installed. Checking version number. forcing low Node version Minimum Node version: v16.9.1 Installed Node version: V1.0.0 Node should be upgraded. Installing Node.js ... Node release info = ## Installing the NodeSource Node.js 16.x repo... ## Populating apt-get cache... + apt-get update Hit:1 https://deb.nodesource.com/node_16.x bullseye InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... ## Confirming "bullseye" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_16.x/dists/bullseye/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null ## Creating apt sources list file for the NodeSource Node.js 16.x repo... + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main' >> /etc/apt/sources.list.d/nodesource.list ## Running apt-get update for you... + apt-get update Hit:1 https://deb.nodesource.com/node_16.x bullseye InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... ## Run sudo apt-get install -y nodejs to install Node.js 16.x and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn node version is node: error while loading shared libraries: libnode.so.72: cannot open shared object file: No such file or directory Node.js installation Done! version= Check current NPM installation ... npm is not installed. Installing npm ... Reading package lists... Building dependency tree... Reading state information... You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: nodejs : Depends: libnode72 (= 12.22.5~dfsg-2~11u1) but it is not going to be installed npm : Depends: node-gyp (>= 3.6.2~) but it is not going to be installed upgrading npm to latest npm installation Done! version=V Cloning MagicMirror ... Cloning MagicMirror Done! Installing dependencies ...

Unable to install dependencies! 

I also tried the recommended: apt --fix-broken install

sdetweil commented 2 years ago

looks like u might be using the lite version

MUST be full w desktop

Slaton87 commented 2 years ago

Thanks! I’ll redownload the program on the sd card and give it a shot. My 8yr old is wanting to try and learn about this stuff so that means I am too lol.

sdetweil commented 2 years ago

@Slaton87 did you resolve this?

sdetweil commented 2 years ago

closing due to lack of response.. if still a problem reopen