GithubHelp home page GithubHelp logo

Cannot instal graphql-faker about graphql-faker HOT 9 OPEN

tbecker avatar tbecker commented on May 28, 2024 10
Cannot instal graphql-faker

from graphql-faker.

Comments (9)

sobrinho avatar sobrinho commented on May 28, 2024 2

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

from graphql-faker.

tomasjanicek avatar tomasjanicek commented on May 28, 2024 2

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

from graphql-faker.

Essay97 avatar Essay97 commented on May 28, 2024 1

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

from graphql-faker.

tbecker avatar tbecker commented on May 28, 2024

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

from graphql-faker.

guillaumelachaud avatar guillaumelachaud commented on May 28, 2024

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

from graphql-faker.

FirdousNath avatar FirdousNath commented on May 28, 2024

Still facing the same issue. Any solution to this?

from graphql-faker.

radoslavkarlik avatar radoslavkarlik commented on May 28, 2024

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

from graphql-faker.

danbrakeley avatar danbrakeley commented on May 28, 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.

from graphql-faker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.