2017-12-28 28 views
0

GraphQL 및 React에 대한 비디오 자습서를 진행했습니다.로컬의 Graphcool-framework cli : "알 수없는 플래그 -schema"

튜토리얼이 명령을 사용하여 graphcool-framework를 초기화 :이 명령을 실행하면, 나는이 오류가 발생했습니다

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

: graphcool 프레임 워크의 새 버전이 없기 때문에

Unknown flag --schema 

답변

0

입니다 비디오 자습서를 따르려면 이전 버전 (비디오에서 사용중인 버전)을 설치하는 것이 더 좋은 경우 플래그 --schema이 있어야합니다. graphcool-framework에 필요한 버전을 설치하려면 다음을 수행하십시오. sudo npm install -g [email protected]