try to change localhost to 127.0.0.1

I did that and it worked.

If you want localhost to work you need to change your hosts file like the picture below.

I hope it helps.

0_1573330326967_77c22e1f-0df4-485e-a6cc-7e244cffd3be-image.png

0_1573330381922_8a54d321-e0ab-4e5d-b192-df7b816dbb23-image.png

0_1573330729102_05c34180-4394-4716-9420-67b44be50df1-image.png