ionic创建项目失败

× Downloading and extracting blank starter - failed!
[ERROR] Network connectivity error occurred, are you offline?

If you are behind a firewall and need to configure proxy settings, see:
https://ionicframework.com/docs/cli/configuring.html#using-a-proxy

Error: getaddrinfo ENOTFOUND d2ql0qc7j8u4b2.cloudfront.net d2ql0qc7j8u4b2.cloudfront.net:443
at errnoException (dns.js:53:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:95:26)

使用淘宝镜像代理

  1. npm config set proxy=https://registry.npm.taobao.org  
  2. npm config set https_proxy=https://registry.npm.taobao.org  
posted @ 2018-04-13 10:43  dnoyeb  阅读(791)  评论(0编辑  收藏  举报