安装 heroku CLI:404 未找到

安装 heroku CLI:404 未找到
$ wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
$ wget https://cli-assets.heroku.com/heroku-cli/channels  /stable/heroku-cli-REPLACEME_OS-REPLACE_ME_ARCH.tar.gz -O heroku.tar.gz
--2017-08-24 02:13:33--  https://cli-assets.heroku.com/heroku-cli/channels /stable/heroku-cli-REPLACEME_OS-REPLACE_ME_ARCH.tar.gz
Resolving cli-assets.heroku.com (cli-assets.heroku.com)... 54.192.209.81,54.192.209.52, 54.192.209.134, ...
Connecting to cli-assets.heroku.com (cli-assets.heroku.com)|54.192.209.81|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-08-24 02:13:38 ERROR 404: Not Found.

这个怎么样?

$ mv heroku-cli-v6.x.x-darwin-64 /usr/local/lib/heroku
mv: cannot stat ‘heroku-cli-v6.x.x-darwin-64’: No such file or directory

答案1

在您提供的下载链接中,您需要REPLACE_ME_OS/REPLACE_ME_ARCH用适当的信息替换。在该部分下方,您将看到以下说明:

其中 REPLACE_ME_OS 是“linux”、“darwin”、“windows”之一,而 REPLACE_ME_ARCH 是“x64”或“x86”之一,您还必须将“6.xx”替换为实际版本。

wget因此,假设您正在运行 64 位版本的 Ubuntu,您的下载内容将如下所示:

wget https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli-linux-x64.tar.gz -O heroku.tar.gz

然后您要做的就是继续以下步骤:

tar -xvzf heroku.tar.gz

mkdir -p /usr/local/lib /usr/local/bin

mv heroku-cli-v6.13.19-6cd27b3-linux-x64 /usr/local/lib/heroku

ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku

希望这可以帮助!

mv[编辑了从到bin的第二个参数lib- 站点不允许 3 个字母的更改,因此有此评论!]

相关内容