Closed genestealer closed 10 months ago
Just a note, I had to uninstall nodejs in order to install npm. This pi previously was running my node red installation. Is the best cause of action to do a clean install?
You now need nodejs v15+ to run and install mqtt-energenenie-ener314rt. I had to bump the overall nodejs version when the MQTT module library (which I use) needed it. I would just install the latest nodejs version and retry.
Ok thanks, I will follow https://github.com/nodesource/distributions#debian-versions to install nodejs:
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
sudo apt-get install nodejs -y
Note, I had to remove the mqtt-energenie-ener314rt
folder then run npm install
again. As just re-running npm install
did not update the MQTT version, even after upgrading to nodejs v15+.
Yay!! Seems to be working! :)
PR raised on documentation to hopefully avoid simulare future issues. https://github.com/Achronite/mqtt-energenie-ener314rt/pull/45
Could you offer any tips?
Am I downloading an old version? "wget https://github.com/Achronite/mqtt-energenie-ener314rt/archive/refs/heads/master.zip"
When trying to run anyway I get![image](https://github.com/Achronite/mqtt-energenie-ener314rt/assets/5207490/c8f7193b-d26a-478e-b6cc-c4d8b82b1abd)