我刚开始快速后端开发。我注意到 Vapor 并安装了 swift packange manager (Swiftenv)。我按照它的说明安装 Vapor CLI:
wget cli.qutheory.io -O vapor
但不断得到错误:
Resolving cli.qutheory.io... 138.197.255.240
Connecting to cli.qutheory.io|138.197.255.240|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-08-07 10:41:15 ERROR 404: Not Found.
有人面临同样的问题吗?如何摆脱它?
我还尝试了另一种方法:
curl -L cli.qutheory.io -o vapor
输出是:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 38 100 38 0 0 21 0 0:00:01 0:00:01 --:--:-- 21
然后,我运行命令:
chmod +x vapor
接着:
sudo mv vapor /usr/local/bin
接着:
vapor self-update
但我得到错误:
/usr/local/bin/vapor: line 1: error:1: command not found
如何安装蒸汽 CLI ?