I was trying to install something and accidentally run following command.
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
Now I am getting error when trying sudo -i.
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
I have tried recovery mode and
chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
but nothing is working.