Graphql-code-generator: [WIP] stuck on node-gyp-build when installing @graphql-codegen/cli with 'npm'

Created on 29 Sep 2020  Â·  2Comments  Â·  Source: dotansimha/graphql-code-generator

Hi !
I'm working on a rails/graphql server generator and at the same time on a front-end typescript generator (with react).

This morning I wanted to make the installation of @graphql-codegen/cli automatic and I noticed that in this installation there was an infinite loop.

I tested manually in a new repository the installation of this package, and I have an infinite loop on this line

❰vincent❙~/test-front❱✔≻ npm install --save-dev @graphql-codegen/cli
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
> [email protected] install /Users/vincent/test-front/node_modules/bufferutil
> node-gyp-build

When i retry to install this package with npm install --save-dev @graphql-codegen/cli it works.

So, i'm working on this issue, and I saw that when I restart the installation, the modified files are only: package.json and package-lock.json

Screenshot 2020-09-29 at 16 55 57

Screenshot 2020-09-29 at 16 55 48

I didn't try to restart my computer, but it was to report my bug while waiting to work on it.

My setup:

macOs Catalina version 10.15.7 (19H2)
npm 6.14.8

Thank's

needs reproduction

Most helpful comment

after restarting my computer, it works !
I don't know if there is a way to reproduce that issue, so i think that this post can be closed.

Thanks

All 2 comments

@vcheloudiakoff I don't think it's coming from codegen or it's deps. Codegen itself doesn't run or build anything native as far as I know.
Please share a reproduction of that issue.

after restarting my computer, it works !
I don't know if there is a way to reproduce that issue, so i think that this post can be closed.

Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dotansimha picture dotansimha  Â·  3Comments

dotansimha picture dotansimha  Â·  3Comments

leebenson picture leebenson  Â·  3Comments

edorivai picture edorivai  Â·  3Comments

zenVentzi picture zenVentzi  Â·  3Comments