@shreyash
Have you updated npm?
I am not sure about this, but what I would then try is first install npm globally. Possibly using sudo.
I would however not advise to install the MM itself via sudo.
Try:
npm install -g npm@latest
If that does not work, with sudo
sudo npm install -g npm@latest
sudo npm n stable
The node version above is also not the latest one (> 10.0) but it should be sufficient.
