我怎样才能在OS X埃尔卡皮坦安装ngrok?(How can I install ngrok on

2019-09-26 22:07发布

首先我想从网站下载,ngrok-stable-darwin-amd64.zip。 当我尝试通过终端解压,我得到:

Archive:  /Users/User/Downloads/ngrok-stable-darwin-amd64.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/User/Downloads/ngrok-stable-darwin-amd64.zip or
        /Users/User/Downloads/ngrok-stable-darwin-amd64.zip.zip, and cannot find /Users/User/Downloads/ngrok-stable-darwin-amd64.zip.ZIP, period.

与取档解压与响应:

数据被破坏:在读取文件的内容“ngrok-stable-darwin-amd64.zip”有一个问题

尝试了自制路线, brew cask install ngrok ,无济于事:

==> Downloading https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-amd64.z
#####                                                                      7.0%
curl: (56) SSLRead() return error -9806
Error: Download failed on Cask 'ngrok' with message: Download failed: https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-amd64.zip
The incomplete download is cached at /Users/User/Library/Caches/Homebrew/Cask/ngrok--2.1.3,4VmDzA7iaHb.zip.incomplete

我试图让流浪份额 。 为什么我不能安装ngrok,或者更重要的是,我怎么能?

请&谢谢。

Answer 1:

您可以安装ngrok作为全球NPM包。 尝试这个:

npm install ngrok -g

欲了解更多信息,请访问查看此页面 。



文章来源: How can I install ngrok on OS X El Capitan?
标签: macos ngrok