Open tbecker opened 1 year ago
I have the same problem, did anyone find a solution?
I installed using docker...., but still the standard install should work on Mac.
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
:
The dist
directory with the built files is missing. It looks like the 2.0.0 release didn't go as intended @IvanGoncharov
Until version 19 we can install it, after that all versions hangs.
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..
Still facing the same issue. Any solution to this?
Even if installed via dependencies, v2.0.0 still does not work.
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.
Still facing the same issue to install in mac, can anyone help on this?
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