wepy-cli : Failed to download repo standard: getaddrinfo ENOENT raw.githubusercontent.com

wepy创建项目(wepy  init standard recruitment-mini)时报错:

解决办法:

(1)打开目录:C:/Windows/System32/drivers/etc/

(2)找到hosts文件,使用管理员模式打开记事本(注意必须使用管理员身份打开)

(3)将hosts文件拖到管理员模式下的记事本中,然后在文件尾部添加以下文本(注意除了下面的文本之外,千万别画蛇添足)

  199.232.28.133 raw.githubusercontent.com

(4)保存文件(可能还要重启一下计算机?),就解决了

原文地址:https://www.cnblogs.com/dreamstartplace/p/13304716.html