Skip to content

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

@Aemilivs

Description

@Aemilivs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions