我如何为truffle@4.0.1解决这个问题?
我正在以管理员身份在receiving中运行'truffle init‘,我收到了这个错误。如果我尝试转到浏览器中的url,它会显示一个ERR_CONNECTION_RESET页面。
PS C:\Users\UserName\desktop\Demo> truffle init
Downloading...
Error: Error making request. Please check the format of the requested resource: https://raw.githubusercontent.com/truffle-box/bare-box/master/truffle.js
at Request._callback (C:\Users\zswann\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:311386:23)
at self.callback (C:\Users\zswann\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:283165:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (C:\Users\zswann\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:283857:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:310:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)发布于 2018-01-25 04:32:45
我得到了同样的问题,并发现我的浏览器阻止了URL:https://raw.githubusercontent.com
一旦我的管理员解锁的网址,它的工作很好。
https://stackoverflow.com/questions/47684232
复制相似问题