【问题标题】:node module raml2html returning empty braces节点模块 raml2html 返回空大括号
【发布时间】:2017-05-26 09:01:29
【问题描述】:

我正在使用 raml2http 节点包将我的 raml 文档转换为 html 文档。

使用全局安装 raml2http

npm install -g raml2html

raml转html命令

raml2html -i [input file path] -o [output file path]

结果 - 空括号而不是 html 文档。

{}

我在这方面做错了吗?

【问题讨论】:

  • 试试这个“npm install raml2html@3.0.1 -g”

标签: html node-modules raml


【解决方案1】:

根据 raml2html docs ,raml2html 4 及更高版本仅支持 RAML 1.0 文件。我已经安装了 raml2html 4 并在 raml 0.8 文件上使用它,因此得到了空括号。降级 raml2html 版本解决了这个问题。

【讨论】:

  • 该错误已在 4.1.1 中得到改进,因此您不再得到那些空括号 :)
  • npm install raml2html@3.0.1 -g
猜你喜欢
  • 1970-01-01
  • 2021-07-21
  • 1970-01-01
  • 1970-01-01
  • 2022-12-03
  • 2021-01-21
  • 2016-04-30
  • 2021-04-08
  • 1970-01-01
相关资源
最近更新 更多