Can't Update - (invalid or corrupted package)

Try this

sudo touch /var/lib/pacman/local/nodejs-21.5.0-1/{desc,files,mtree}
sudo pacman -S nodejs