Angular10 Error: getaddrinfo ENOTFOUND xxx at GetAddrInfoReqWrap.onlookup [as oncomplete] (d

【问题描述】:

Angular10项目本地运行出现如下错误:
错误

【原因】:

本地hosts文件中没有这个映射

【解决办法】:

在本地hosts文件中添加这个映射

127.0.0.1      xxx.cn

在Mac下更改hosts文件的办法请戳这里

猜你喜欢

转载自blog.csdn.net/a1056244734/article/details/107832821