truffle init Error:连接不到github网址
2024-09-05 06:02:08
问题描述:
输入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)
最新文章
- VS2010如何使用Visual Studio Online在线服务管理团队资源(在线TFS)
- css sprite
- immutableJS一些API
- svn ubuntu command(转载)
- SPRING + THYMELEAF 配置
- 环信SDK与Apple Watch的结合(1)
- mapping 详解2(field datatypes)
- Java实现直接插入查找
- apache和tomcat的区别
- python实现PKCS5Padding
- 在R中整理数据
- 【POJ 3401】Asteroids
- git下载/上传文件提示:git did not exit cleanly
- unity重写软键盘for Android NGUI
- 打造适合自己的vim编辑器方法总结
- python(leetcode)-48旋转图像
- 【P1941】 飞扬的小鸟
- ATM目录结构
- 密码机制(PGP)
- dump_stack的简单使用 【转】