Truffle Unbox failed问题解决方法

写在前面的话

    近来老大要求了解下区块链,于时翻了各种资料,先是搞清楚各种概念就花了不少时间。这不今天终于开始向智能合约迈出了第一步,就像小孩学走路的时候都会摔跤,我这第一步还没跨出去就摔了。根据官网介绍——Truffle 是基于 Solidity 语言的一套开发框架,它简化了去中心化应用(DApp)的构建和管理流程。本身是采用 Javascript 编写,支持智能合约的编译、部署和测试。嗯,你理解的没错,Truffle就是让你编写合约更简单。废话不多说,直接上问题。


主要内容

  • OS:Windows10  Node v10.15.3
  • 初始化项目:

  • google一番后发现是网络原因,大致是访问不到境外的域名服务器,知道原因就好解决了。直接复制下面配置到hosts文件(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

  • 再执行一次,everything goes well


写在后面的话

个人一直认为:世上没有解决不了的问题,只有不死磕的人!

后续有时间会记录下自己的学习过程,一来作为自己的笔记;二来可以让新进入区块链的人少踏坑。

  • 15
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值