Macos 如何在OS X El Capitan上安装ngrok?

Macos 如何在OS X El Capitan上安装ngrok?,macos,ngrok,Macos,Ngrok,首先,我尝试从网站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

首先,我尝试从网站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.
使用Unarchiver解压响应为:

读取文件内容时出现问题 “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,或者更重要的是,如何安装


请&谢谢。

您可以将ngrok安装为全球npm软件包。试试这个:

npm install ngrok -g

有关更多信息,请访问检查。

惊人的成功!谢谢你,阿凯!!我还没有测试过流浪股票,但这绝对是正确的一步direction@user163831if这对你有用别忘了把它标记为正确答案:)谢谢你对我有用。尝试通过
brew cask install ngrok安装时遇到问题这工作正常!