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

Cannot instal graphql-faker #196

Open
tbecker opened this issue Jul 12, 2023 · 9 comments
Open

Cannot instal graphql-faker #196

tbecker opened this issue Jul 12, 2023 · 9 comments

Comments

@tbecker
Copy link

tbecker commented Jul 12, 2023

I cannot install graphql-faker on the mac - Ventura 13.4.1 (22F82), NPM version 9.2.0

this is the prompt:
npm install -g graphql-faker
"(######⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠋ idealTree:express-graphql timing idealTree:node_modules/graphql-faker/node_modu"
The installer always stops at this point.

Yarn install did not work for me.
"ERROR: global is not COMMAND nor fully qualified CLASSNAME."

Best regards

Torsten

@Essay97
Copy link

Essay97 commented Jul 19, 2023

I have the same problem, did anyone find a solution?

@tbecker
Copy link
Author

tbecker commented Jul 24, 2023

I installed using docker...., but still the standard install should work on Mac.

@guillaumelachaud
Copy link

I managed to install the package through yarn when it's in a package.json file (I haven't tried a global install). But the module ends up empty in node_nodules:
CleanShot 2023-08-30 at 09 34 13@2x
The dist directory with the built files is missing. It looks like the 2.0.0 release didn't go as intended @IvanGoncharov

@sobrinho
Copy link

Until version 19 we can install it, after that all versions hangs.

@tomasjanicek
Copy link

tomasjanicek commented Sep 13, 2023

The only way how i run the version 2.0.0 in docker is build it self in my Dockerfile by this command.

WORKDIR /workdir

EXPOSE 9002

ENV NODE_OPTIONS=--openssl-legacy-provider

RUN git clone https://github.com/graphql-kit/graphql-faker.git && \
    cd graphql-faker && npm i && npm run build

ENTRYPOINT ["node", "/workdir/graphql-faker/dist/index.js"]

I run it on ubuntu with node 20 with npm 9 and the prerequisite is to have git installed inside the container..
it could still be combed and moved to the global, but for my needs it seemed unnecessary..
it's slow during the build, but I didn't come up with anything better after a whole day of research.. hopefully it will help someone..

@FirdousNath
Copy link

FirdousNath commented Nov 14, 2023

Still facing the same issue. Any solution to this?

@radoslavkarlik
Copy link

Even if installed via dependencies, v2.0.0 still does not work.

@danbrakeley
Copy link

danbrakeley commented Jan 24, 2024

I just hit this issue with the following Dockerfile:

FROM node:18-alpine
RUN npm install -g --verbose graphql-faker

which after a couple seconds stopped dead in its tracks (here's ~2 minutes after it got stuck):

$ docker build . -t test
[+] Building 132.9s (4/5)                                                                                                                        docker:default
 => [internal] load .dockerignore                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                            0.0s
 => [internal] load build definition from Dockerfile                                                                                                       0.0s
 => => transferring dockerfile: 100B                                                                                                                       0.0s
 => [internal] load metadata for docker.io/library/node:18-alpine                                                                                          0.8s
 => CACHED [1/2] FROM docker.io/library/node:18-alpine@sha256:b1a0356f7d6b86c958a06949d3db3f7fb27f95f627aa6157cb98bc65c801efa2                             0.0s
 => => resolve docker.io/library/node:18-alpine@sha256:b1a0356f7d6b86c958a06949d3db3f7fb27f95f627aa6157cb98bc65c801efa2                                    0.0s
 => [2/2] RUN npm install -g --verbose graphql-faker                                                                                                     131.9s
 => => # npm http fetch GET 200 https://registry.npmjs.org/@types%2fjss 692ms (cache miss)
 => => # npm http fetch GET 200 https://registry.npmjs.org/@material-ui%2fsystem 790ms (cache miss)
 => => # npm http fetch GET 200 https://registry.npmjs.org/good-listener 824ms (cache miss)
 => => # npm http fetch GET 200 https://registry.npmjs.org/@f%2fraf 875ms (cache miss)
 => => # npm http fetch GET 200 https://registry.npmjs.org/@f%2ftween 892ms (cache miss)
 => => # npm http fetch GET 200 https://registry.npmjs.org/@f%2felapsed-time 908ms (cache miss)

I commented out the RUN line in the above Dockerfile, then ran a shell to get the node and npm versions:

$ docker run --rm -it --entrypoint sh test
/ # npm --version
10.2.3
/ # node --version
v18.19.0

If it matters, my host is Windows 10 Pro (22H2, v19045.3930) running Docker Desktop v4.26.1.

@pavithran-v
Copy link

Still facing the same issue to install in mac, can anyone help on this?

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

9 participants