truffle unbox metacoin 报错

truffle unbox metacoin 报错

前言:

最近来新公司需要研究一下区块链,然后再window 的dos界面执行 truffle unbox metacoin 一直报错 

 

 找了很多都没有找到,反正大概是网络原因。

解决方法:

  直接将下面代码添加到  C:\Windows\System32\drivers\etc\hosts  里,保存(需要管理员权限)。

 

# GitHub Start

192.30.255.112 gist.github.com

192.30.255.112 github.com

192.30.255.112 www.github.com

151.101.56.133 avatars0.githubusercontent.com

151.101.56.133 avatars1.githubusercontent.com

151.101.56.133 avatars2.githubusercontent.com

151.101.56.133 avatars3.githubusercontent.com

151.101.56.133 avatars4.githubusercontent.com

151.101.56.133 avatars5.githubusercontent.com

151.101.56.133 avatars6.githubusercontent.com

151.101.56.133 avatars7.githubusercontent.com

151.101.56.133 avatars8.githubusercontent.com

151.101.56.133 camo.githubusercontent.com

151.101.56.133 cloud.githubusercontent.com

151.101.56.133 gist.githubusercontent.com

151.101.56.133 marketplace-screenshots.githubusercontent.com

151.101.56.133 raw.githubusercontent.com

151.101.56.133 repository-images.githubusercontent.com

151.101.56.133 user-images.githubusercontent.com

# GitHub End

  再原来的dos 界面 执行  everything goes well  (提示不是内部命令就跳过吧)

  最后再次执行  truffle unbox metacoin  就可以了(还是不行就再执行一次,应该就可以了)。

 

posted @ 2021-05-18 17:01  网馆  阅读(347)  评论(0)    收藏  举报