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  
    原文作者:栴檀沉香
    原文地址: https://www.cnblogs.com/ckAng/p/8818833.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞