Could you please help ?
I tried follow the Quick Start.
$ npm install graphql-code-generator
$ gql-gen init
-bash: gql-gen: command not found
this seems to work: $ node_modules/.bin/gql-gen init
Did you install graphql-code-generator in one directory and then change into another directory? If so, that module would not be found.
Other possible solutions would be:
npm i -g graphql-code-generator # yarn global add graphql-code-generator)npx gql-gen init)If you could give your version of NPM and your OS, that would be helpful. Thanks!
@bastman please read the comments here: https://github.com/dotansimha/graphql-code-generator/issues/1222
Most helpful comment
this seems to work: $ node_modules/.bin/gql-gen init