EdiMax SmartPlug Smart plug nodeRED and Emoncms

 
I agree, I always had trouble with upgrade until I tried this command:

bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)

the above command is from:
https://nodered.org/docs/hardware/raspberrypi