014 Unbox failed! RequestError: Error: getaddrinfo ENOENT raw.githubusercontent.com raw.githubuserco
执行 truffle unbox pet-shop 报错,因为无法连接raw.githubusercontent.com,需要或者配置本地host文件
解决方案:
【014 Unbox failed! RequestError: Error: getaddrinfo ENOENT raw.githubusercontent.com raw.githubuserco】1、通过https://www.ipaddress.com查询 raw.githubusercontent.com 的 地址。
2、配置host文件C:\Windows\System32\drivers\etc\host增加以下内容
199.232.68.133raw.githubusercontent.com
√ Preparing to download box
× Downloading
Unbox failed!
RequestError: Error: getaddrinfo ENOENT raw.githubusercontent.com raw.githubusercontent.com:443
at new RequestError (C:\Program Files\Node\node_modules\truffle\build\webpack:\node_modules\request-promise-core\lib\errors.js:14:1)
at Request.plumbing.callback (C:\Program Files\Node\node_modules\truffle\build\webpack:\node_modules\request-promise-core\lib\plumbing.js:87:1)
at Request.RP$callback [as _callback] (C:\Program Files\Node\node_modules\truffle\build\webpack:\node_modules\request-promise-core\lib\plumbing.js:46:1)
at self.callback (C:\Program Files\Node\node_modules\truffle\build\webpack:\node_modules\request\request.js:185:1)
at Request.emit (events.js:198:13)
at Request.onRequestError (C:\Program Files\Node\node_modules\truffle\build\webpack:\node_modules\request\request.js:881:1)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
Truffle v5.1.32 (core: 5.1.32)
Node v10.20.0
推荐阅读
- 离开美即
- D014+6组银桥+《人生效率手册》读书笔记
- 企业为什么要融资
- 紫晶学画014-金顶
- 马兆炜(小叮当影像)
- 20140416|20140416 星期二 晴
- 2018014-20180120
- IDEA|IDEA 中使用MAVEN Install 项目的时候 报 org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed
- RpcException:|RpcException: Invalid token! Failed to invoke method
- 014Full|014Full Text Search-TheBrain提示