Swift Vapor 3构建错误

时间:2018-06-03 15:29:47

标签: vapor

当我创建一个新的蒸汽3项目。 我在构建时遇到了这个错误。

我在测试版和非测试版中试过了.. 我重新安装蒸气 但仍有错误。

        No .build folder, fetch may take a while...
        Fetching Dependencies [                 •       ]
        Error: backgroundExecute(code: 1, error: "warning: \'fetch\' command is deprecated; use \'resolve\' instead\nerror: failed to clone; Cloning into bare repository 
    \'/Users/Mercury/Desktop/vapor/n/.build/repositories/http.git-9159899851620770205\'...\nerror: RPC failed; curl 56 LibreSSL SSL_read: 
error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol version, errno 0\nfatal: The remote end hung up unexpectedly\n", output: "Fetching https://github.com/vapor/validation.git\nFetching 
    https://github.com/apple/swift-nio-zlib-support.git\nFetching https://github.com/vapor/http.git\nFetching https://github.com/vapor/sqlite.git\nFetching 
https://github.com/vapor/console.git\nFetching 
    https://github.com/vapor/core.git\nFetching
 https://github.com/vapor/crypto.git\nFetching 
    https://github.com/vapor/database-kit.git\nFetching 
https://github.com/vapor/routing.git\nFetching https://github.com/vapor/websocket.git\nFetching 
https://github.com/vapor/service.git\nFetching 
    https://github.com/apple/swift-nio.git\nFetching 
https://github.com/apple/swift-nio-ssl-support.git\nFetching https://github.com/vapor/fluent.git\nFetching 
https://github.com/vapor/template-kit.git\nFetching 
    https://github.com/vapor/url-encoded-form.git\nFetching \https://github.com/vapor/multipart.git\nFetching https://github.com/vapor/vapor.git\nFetching 
    https://github.com/apple/swift-nio-ssl.git\nFetching 
    https://github.com/vapor/sql.git\nFetching https://github.com/vapor/fluent-sqlite.git\n")

1 个答案:

答案 0 :(得分:0)

如果您使用的是旧版本,更新版本是解决此问题的好方法..