graphql-faker icon indicating copy to clipboard operation
graphql-faker copied to clipboard

Cannot instal graphql-faker

Open tbecker opened this issue 11 months ago • 9 comments

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

tbecker avatar Jul 12 '23 17:07 tbecker

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

Essay97 avatar Jul 19 '23 06:07 Essay97

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

tbecker avatar Jul 24 '23 18:07 tbecker

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

guillaumelachaud avatar Aug 30 '23 16:08 guillaumelachaud

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

sobrinho avatar Sep 11 '23 22:09 sobrinho

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..

tomasjanicek avatar Sep 13 '23 15:09 tomasjanicek

Still facing the same issue. Any solution to this?

FirdousNath avatar Nov 14 '23 07:11 FirdousNath

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

radoslavkarlik avatar Dec 04 '23 10:12 radoslavkarlik

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.

danbrakeley avatar Jan 24 '24 20:01 danbrakeley

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

pavithran-v avatar Apr 19 '24 03:04 pavithran-v