ionic start myApp tabs 报:Error:If you are behind a firewall and need to configure proxy settings, see: https://ion.link/cli-proxy-docs

问题描述:

使用 ionic-cli的 ionic start myApp tabs 创建新项目,报如下错误:

 If you are behind a firewall and need to configure proxy settings, see: https://ion.link/cli-proxy-docs

 Error: getaddrinfo ENOTFOUND proxy.example.com
        at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)

解决过程:

原因是 ionic 已经配置了代理设置,这时候需要删除ionic的默认代理设置:

ionic config unset proxy --global
posted @ 2021-03-09 14:01  HHZZYY  阅读(146)  评论(0编辑  收藏  举报