如何为 truffle@4.0.1 解决这个问题?
我以管理员身份在 Windows PowerShell 中运行“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)