LukeSkywalker92 / TeleFrame

TeleFrame - a digital picture frame for telegram
MIT License
93 stars 28 forks source link

Installation problems caused by non compatible versions of node/npm #157

Open thoschneider opened 3 years ago

thoschneider commented 3 years ago

During my last TeleFrame installation on a fresh installed and updated version of Raspberry Pi OS (Version 10 - buster) the installation stopped with some errors pointing to node and npm. I don't recall the exact wording of the errors. It turned out that the versions of the installed node and npm package are not compatible (in my case node v10.21.0 and npm 5.8.0). Unfortunately in Debian and Raspberry Pi OS they are packaged separately - unlike in Ubuntu for example. I tried

npm install npm@latest -g

as suggested in #39 but this somehow raised another error. What helped was removing node and npm completely with

sudo apt-get remove nodejs

and running the installation script again. The script then installed compatible versions of node/npm (in my case node v10.21.0 and npm 6.14.9).

This is of course a problem of Raspberry Pi OS, not a bug in TeleFrame. I can't provide a solution how the installation script could check for compatible installed versions of node/npm.