【问题标题】:Swift Vapor 3 build errorSwift Vapor 3 构建错误
【发布时间】:2018-06-03 15:29:46
【问题描述】:

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

我在 beta 版和非 beta 版中都试过了.. 我重新安装了蒸汽 但仍然有这个错误。

        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")

【问题讨论】:

  • 发布你的 Package.swift 文件以及vapor --version的结果
  • 所有激光版本
  • 我遇到了同样的问题,我猜 swift 4.2 对 Vapor 3 的支持不好。

标签: vapor


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2018-10-15
    • 2018-10-24
    • 2017-06-29
    • 2017-08-15
    • 2017-04-23
    • 2017-03-12
    • 2020-03-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多