When I try npm install
new packages it shows me this error:
<rollbackFailedOptional: verb npm-session 585aaecfe5f9a82
You can resolve the issue by looking if your network has any proxies, that is prohibiting the download process. My company's network had a firewall enabled, which was causing the issue for me. So I had to switch to an un-secure network (probably a hotspot from your mobile network), and that worked for me.
use sudo before your command as
sudo npm install