Today I tried to insert my 3 years old SD card in my Pi. Because I had the OS installed on that SD card. So I wanted to upgrade the entire system packages and libraries.
So I tried to do sudo apt-get update & sudo apt-get upgrade. After lots of update and upgrade the entire upgrade process got stuck with the following library.
Unpacking nodered (0.15.3) over (0.15.2) ...
So I tried to study about it and figured out a simple solutions but that may take 20-30 minutes to complete the process.
Open the terminal and and run the following code.
bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
The above command will do all the tasks to reset, update/upgrade nodered in your pi. See the following screenshot.