我试图在我的raspberrypi上安装Vapor,但出现了奇怪的错误



我正在运行Raspbian,到目前为止已经安装了Swift 5.1.5并克隆了Vapor Branch 18.0.0 beta 27。我似乎无法在我的系统上安装Swift 5.2版本。

尽管如此,下一步是构建Vapor,但它给了我以下错误:

sudo swift build -c release

Updating https://github.com/jpsim/Yams.git
Updating https://github.com/apple/swift-nio.git
Updating https://github.com/vapor/console-kit.git
Updating https://github.com/apple/swift-log.git
Updating https://github.com/tanner0101/mustache.git
https://github.com/apple/swift-nio.git @ master: error: terminated(128): git -C /home/pi/Downloads/toolbox/.build/repositories/swift-nio-b68c973e rev-parse --verify 'master^{commit}' output:
fatal: Needed a single revision

不知道从那里去哪里,在网上找不到任何相关信息。

Vapor 4和新的工具箱都需要Swift 5.2——你需要先安装好。

接下来是该工具箱的旧版本,您可以在https://github.com/vapor/toolbox/releases

最后,你可能不需要工具箱。它用于创建新项目。如果你只想构建或运行现有的,只需使用swift命令

最新更新