Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在关注关于 GraphQL 和 React 的视频教程。
本教程graphcool-framework使用以下命令进行初始化:
graphcool-framework
graphcool-framework init --schema https://graphqlbin.com/hn-starter.graphql --name Hackernews
当我执行这个命令时,我得到了这个错误:
Unknown flag --schema
这是因为新版本的 graphcool-framework 没有标记--schema,如果您想按照视频教程进行操作,您最好安装旧版本(即他们在视频中使用的版本)。要安装您需要的 graphcool-framework 版本,请执行以下操作: sudo npm install -g graphcool@0.4
--schema
sudo npm install -g graphcool@0.4