0

上下文:我想安装 conscript 和 giter8,以便我可以更有效地创建和使用 Scalatra 项目文件。我已按照此处此处的说明下载并运行 jar。当我这样做时,我收到以下错误。运行 Powershell 脚本时出现同样的错误。当我在专用网络上时,我的互联网连接很好。当我跟随异常消息中的位置时,我点击了一个奇怪的页面,它看起来像一个 Github 目录列表 - 不知道该怎么做。

"An unexpected error occurred: Please check your internet connection. 
Exception message: https://api.github.com/repos/foundweekends/conscript/git/refs/"

在此处输入图像描述

问题:有人可以让我知道我做错了什么吗?并解释我如何才能让应征入伍并正常运行?

更新:运行 jar 仍然无法正常工作,但我重新尝试运行 powershell 脚本,看起来它确实能够成功安装 conscript。当我 cd 进入.conscript\bin 目录并运行时cs foundweekends/giter8,我仍然收到这个奇怪的错误,这表明 conscript 或 giter8 仍未启动并正常运行。

c:\Users\e.b\.conscript\bin>cs foundweekends/giter8
An unexpected error occurred: Please check your internet connection.
Exception message: 
https://api.github.com/repos/foundweekends/giter8/git/refs/heads/master

c:\Users\e.b\.conscript\bin>

当我导航到提供的 URL 时,我会收到一条消息。

{ “消息”:“未找到”,“documentation_url”:“https://docs.github.com/rest”}

4

1 回答 1

0

我发现了一些似乎可以解决问题的附加文档:http ://www.foundweekends.org/giter8/

当我运行 cmd 并执行时sbt new scala/scala-seed.g8,我能够成功设置 Scalatra 模板。

于 2021-09-27T18:26:14.733 回答