繁体   English   中英

如何在 Ubuntu 18 上使用 apt 将仪表安装为 package?

[英]How to install gauge as package on Ubuntu 18 with apt?

这是我的系统:

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic

我使用以下说明: https://docs.gauge.org/getting_started/installing-gauge.html?os=linux&language=java&ide=vscode#step-1-installing-gauge-on-linux

但命令

sudo apt-get update && sudo apt-get install gauge

导致

Hit:1 http://packages.microsoft.com/repos/code stable InRelease
Err:2 https://dl.bintray.com/gauge/gauge-deb stable InRelease                                                                                                                     
  403  Forbidden

我的 Ubuntu 版本现在有仪表 package 吗?

在相同的 URL 下描述的安装的 NPM 变体导致

 sudo npm install -g @getgauge/cli
/usr/local/bin/gauge -> /usr/local/lib/node_modules/@getgauge/cli/bin/gauge

> @getgauge/cli@1.1.8 install /usr/local/lib/node_modules/@getgauge/cli
> node ./src/index.js

Fetching download url for Gauge version 1.1.8
Downloading https://github.com/getgauge/gauge/releases/download/v1.1.8/gauge-1.1.8-linux.x86_64.zip to ./bin
TypeError: "listener" argument must be a function
    at ClientRequest.once (events.js:340:11)
    at new ClientRequest (_http_client.js:164:10)
    at Object.request (http.js:38:10)
    at Object.request (https.js:239:15)
    at Object.get (https.js:243:21)
    at downloadFollowingRedirect (/usr/local/lib/node_modules/@getgauge/cli/src/index.js:13:11)
    at Promise (/usr/local/lib/node_modules/@getgauge/cli/src/index.js:30:13)
    at new Promise (<anonymous>)
    at downloadAndExtract (/usr/local/lib/node_modules/@getgauge/cli/src/index.js:28:12)
    at install.getVersion.then (/usr/local/lib/node_modules/@getgauge/cli/src/index.js:38:18)
    at <anonymous>

之后,仪表存在于 /usr/local/bin/gauge 中。 为什么带有 package 的正常变体不起作用?

我在他们的 Github 上打开了一个问题,似乎这个 deb 存储库已被删除。 在那里您可以检查在 Ubuntu 上安装的新程序:

https://github.com/getgauge/gauge/issues/1990

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM