【问题标题】:Graphcool-framework cli on local: "Unknown flag –schema"本地的 Graphcool-framework cli:“未知标志 –schema”
【发布时间】:2018-06-08 15:48:24
【问题描述】:

我正在关注有关 GraphQL 和 React 的视频教程。

本教程使用此命令初始化graphcool-framework

graphcool-framework init --schema https://graphqlbin.com/hn-starter.graphql --name Hackernews

当我执行这个命令时,我得到了这个错误:

Unknown flag --schema

【问题讨论】:

  • 仅供参考:“很难说再见!Graphcool 将于 2020 年 7 月 1 日停用。”来自他们的网站:\

标签: reactjs graphql graphcool


【解决方案1】:

这是因为 graphcool-framework 的新版本没有 --schema 标志,如果您想按照视频教程进行操作,最好安装旧版本(即他们在视频中使用的版本)。 要安装您需要的 graphcool-framework 版本,请执行以下操作: sudo npm install -g graphcool@0.4

【讨论】:

    猜你喜欢
    • 2020-04-23
    • 2018-06-07
    • 1970-01-01
    • 2018-06-16
    • 2018-06-18
    • 1970-01-01
    • 1970-01-01
    • 2018-06-05
    • 1970-01-01
    相关资源
    最近更新 更多