Error running sls offline

I’ve been trying to run “sls offline start” but always getting this error.

Error: getaddrinfo ENOTFOUND localhost
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)

I’ve tried to reinstall serverless but no luck.
serverless 1.61.3
node 12.14.1
npm 6.13.4