Heroku CLI在Ubuntu 16.04上没有响应 [英] Heroku CLI unresponsive on Ubuntu 16.04

查看:152
本文介绍了Heroku CLI在Ubuntu 16.04上没有响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Ubuntu 16.04上安装heroku cli,按照以下文档: Heroku CLI文档,当我的系统似乎安装正确时,每当我尝试Heroku命令时,如heroku登录终端挂起,并变得没有响应。我没有收到任何错误代码。



这是我试过的:



我试过通过以下方法安装heroku:

  wget -qO- https://cli-assets.heroku.com/install-ubuntu .sh | sh 

这不起作用,我卸载并试用了这个功能:

  sudo snap install heroku --classic 



<

  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.16.12-04b3626-linux-x64 / usr / local / lib / heroku
ln -s / usr / local / lib / heroku / bin / heroku / usr / local / bin / heroku

得到了相同的结果。



似乎工作的一个命令是 heroku --version ,但仅在大约3分钟后才返回 heroku-cli / 6.16.12-04b3626(linux-x64)node-v9.11.1
。我不知道我的操作系统是否有什么问题,但我系统上的其他设备似乎工作正常。



任何帮助将不胜感激。 解决方案

我的〜/ .netrc文件。我以某种方式获得了超过12,000次的相同记录。清除该文件后,heroku的作品。


I'm trying to get heroku cli installed on Ubuntu 16.04, following the documentation here: Heroku CLI Documentation and while my system appears to install it correctly, whenever I try any Heroku commands like heroku login the terminal hangs, and becomes unresponsive. I'm not getting any error codes.

Here's what I've tried:

I've tried installing heroku via the following methods:

wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh

That didn't work, I uninstalled and tried this:

sudo snap install heroku --classic

That did't work, I uninstalled and tried this:

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.16.12-04b3626-linux-x64 /usr/local/lib/heroku
ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku

And got the same result.

The one command that does seem to work is heroku --version, but only after about 3 minutes does it return heroku-cli/6.16.12-04b3626 (linux-x64) node-v9.11.1 . I don't know if there is something going on with my os, but everything else on my system seems to be working fine.

Any help would be greatly appreciated.

解决方案

The problem was my ~/.netrc file. I had somehow gotten the same entry into it over 12,000 times. After clearing that file heroku works.

这篇关于Heroku CLI在Ubuntu 16.04上没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆