问题描述:

输入truffle init

输出 Error: Error making request to https://raw.githubusercontent.com/truffle-box/bare-box/master/truffle.js. Got error: connect ECONNREFUSED 151.101.192.133:443. Please check the format of the requested resource

解决方法:修改hosts

1、win+R

2、c:\windows\system32\drivers\etc

3、将hosts文件复制到桌面打开,添加 151.101.192.133:443 github.com

4、用修改后的hosts文件覆盖原hosts文件

下一步问题描述:

输入 truffle init
输出 Downloading...
Error: Truffle Box at URL https://github.com/truffle-box/bare-box.git doesn't exist. If you believe this is an error, please contact Truffle support.

解决办法:修改hosts

在hosts文件中添加:github.com和github.global.ssl.fastly.net及对应ip

注意:github.com和github.global.ssl.fastly.net对应ip可能因机器不同而不相同,可以使用该站点查询对应域名的ip(https://www.ipaddress.com/ip-lookup

最新文章

  1. VS2010如何使用Visual Studio Online在线服务管理团队资源(在线TFS)
  2. css sprite
  3. immutableJS一些API
  4. svn ubuntu command(转载)
  5. SPRING + THYMELEAF 配置
  6. 环信SDK与Apple Watch的结合(1)
  7. mapping 详解2(field datatypes)
  8. Java实现直接插入查找
  9. apache和tomcat的区别
  10. python实现PKCS5Padding
  11. 在R中整理数据
  12. 【POJ 3401】Asteroids
  13. git下载/上传文件提示:git did not exit cleanly
  14. unity重写软键盘for Android NGUI
  15. 打造适合自己的vim编辑器方法总结
  16. python(leetcode)-48旋转图像
  17. 【P1941】 飞扬的小鸟
  18. ATM目录结构
  19. 密码机制(PGP)
  20. dump_stack的简单使用 【转】

热门文章

  1. Java集合--整体框架
  2. python函数入参和返回值
  3. [Google Guava] 2.4-集合扩展工具类
  4. [Google Guava] 1.1-使用和避免null
  5. 出现错误时返回异常 MVC
  6. BZOJ 3679 数字之积 数位DP
  7. mysql查看查询缓存是否启用
  8. java线程安全与不安全的理解
  9. Python3读写JSON文件
  10. Mysql中行转列和列转行