首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在上安装ngrok?

如何在上安装ngrok?
EN

Stack Overflow用户
提问于 2017-11-19 14:58:14
回答 1查看 1.3K关注 0票数 2

首先,我尝试从网站下载,ngrok稳定-达尔文-amd64.zip。当我尝试通过终端解压缩时,我得到:

代码语言:javascript
复制
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稳定-达尔文-amd64.zip”的内容时出现了问题:数据已损坏

尝试了自制的路线,brew cask install ngrok,但没有结果:

代码语言:javascript
复制
==> 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,或者更重要的是,我如何安装?

请&谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-11-29 10:54:13

您可以将ngrok作为一个全局npm包安装。试试这个:

代码语言:javascript
复制
npm install ngrok -g

有关更多信息,请访问此页

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47378263

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档