Unhandled rejection Error: EACCES: permission denied




If you know username then restore ownership user's npm related folders, to the current user.

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

In Case you are not sure about username then simply run commands

sudo chown -R $(whoami) ~/.npm

sudo chown -R $(whoami) ~/.config 


Thank you