We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After attempting to run through CLI
npx swagger-to-graphql --swagger-schema=/path/to/swagger_schema.json > ./types.graphql
I get the error:
Cannot find module 'graphql'
Even after npm install graphql --save
The text was updated successfully, but these errors were encountered:
Works when not using npx:
$ npm i swagger-to-graphql graphql $ ./node_modules/.bin/swagger-to-graphql --swagger-schema=swagger_schema.json ./types.graphql
Sorry, something went wrong.
@Colbz ,
As a workaround, if you want to only use npx, you can run the following command
npx -p graphql -p swagger-to-graphql -c "swagger-to-graphql --swagger-schema=/path/to/swagger_schema.json > ./types.graphql"
No branches or pull requests
After attempting to run through CLI
npx swagger-to-graphql --swagger-schema=/path/to/swagger_schema.json > ./types.graphql
I get the error:
Cannot find module 'graphql'
Even after npm install graphql --save
The text was updated successfully, but these errors were encountered: