If you know username then restore ownership user's npm related folders, to the current user.
sudo chown -R $USER:$GROUP ~/.npmsudo chown -R $USER:$GROUP ~/.configIn Case you are not sure about username then simply run commands
sudo chown -R $(whoami) ~/.npmsudo chown -R $(whoami) ~/.configThank you
