Skip to content
New issue

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

Error on executing CLI command: Cannot find module 'graphql' #173

Open
Aemilivs opened this issue Dec 24, 2020 · 2 comments
Open

Error on executing CLI command: Cannot find module 'graphql' #173

Aemilivs opened this issue Dec 24, 2020 · 2 comments

Comments

@Aemilivs
Copy link

Summary

When I give execute the following command:

npx swagger-to-graphql --swagger-schema=https://petstore.swagger.io/v2/swagger.json

There is an exception thrown:

Cannot find module 'graphql'
Require stack:
- C:\Users\Vadim\AppData\Roaming\npm-cache\_npx\22428\node_modules\swagger-to-graphql\lib\index.js       
- C:\Users\Vadim\AppData\Roaming\npm-cache\_npx\22428\node_modules\swagger-to-graphql\bin\swagger-to-graphql
@Aemilivs
Copy link
Author

Aemilivs commented Dec 24, 2020

Looks like it was resolved by installing TypeScript:

npm i -g typescript

@twuyts
Copy link

twuyts commented Mar 2, 2021

see #162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants