Home > Net >  How to resolve node:internal/modules/cjs/loader:942 throw err?
How to resolve node:internal/modules/cjs/loader:942 throw err?

Time:06-14

I am trying to run the following commands

npm run graphql-codegen init
npm run install

But it always throws an error which is that it is unable to find the graphql-codegen module. Error Image

My package.json file looks like this. enter image description here

Can anybody please tell me what is issue here?

CodePudding user response:

The correct command:

npx graphql-codegen init
  • Related