1

I was following a video tutorial on GraphQL and React.

The tutorial initializes graphcool-framework using this command:

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

When I executed this command, I got this error:

Unknown flag --schema
jwpfox
  • 5,124
  • 11
  • 45
  • 42
Davaakhuu
  • 238
  • 3
  • 6

1 Answers1

1

This is because the new version of graphcool-framework doesn't have the flag --schema if you want to follow the video-tutorials you better install the old version(that is the version they are using in the videos). To install the version you need of graphcool-framework do: sudo npm install -g graphcool@0.4

Joan Albert
  • 644
  • 10
  • 23