【问题标题】:Graphql Codegen Wizard Terminated UnexpectedGraphql Codegen 向导意外终止
【发布时间】:2022-07-30 11:55:37
【问题描述】:

我正在尝试为我的应用程序使用 GraphQL Codegen 向导。我按照该站点的安装说明进行操作:https://www.graphql-code-generator.com/docs/getting-started/installation

由于冲突,所有依赖项都通过带有 --legacy-peer-deps 的 npm 成功安装。当运行下面这个命令的时候,脚本意外结束了。我没有机会回答这个问题。

npx graphql-codegen init

enter image description here

我做错了什么?

系统详情:

  • 操作系统 Windows 10
  • 节点 16.15.1
  • npm 8.11.0
  • 纱线 1.22.19
  • Angular CLI 14.0.1
  • GraphQL ^16

【问题讨论】:

    标签: graphql-codegen


    【解决方案1】:

    我想出的唯一解决办法是降级到 2.10.0 版的 graphql 代码生成器。

    在您的 package.json 中进行此更改 -> "@graphql-codegen/cli": "2.10.0"

    然后 npm 安装

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-04-21
      • 1970-01-01
      • 1970-01-01
      • 2013-12-16
      • 2013-04-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多