【发布时间】:2016-12-13 05:12:19
【问题描述】:
我刚开始快速后端开发。我注意到 Vapor 并安装了 swift packange manager (Swiftenv)。我按照它的instruction 来安装 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
如何安装vapor CLI?
【问题讨论】:
-
不,没有用。