Giter VIP home page Giter VIP logo

Comments (5)

schickling avatar schickling commented on May 16, 2024 1

Thanks for further digging into this @loremaps. Would be great if you can figure out a solution that works also in your case that we can introduce as a fix in graphql-cli.

from graphql-cli.

loremaps avatar loremaps commented on May 16, 2024 1

Fixed in the latest release 2.1.3. Thanks @schickling

from graphql-cli.

schickling avatar schickling commented on May 16, 2024

Is anybody else experiencing this problem?

@loremaps would be good to know more about your setup: OS, Node version, NPM version

from graphql-cli.

loremaps avatar loremaps commented on May 16, 2024

OS: Ubuntu 16.04 LTS
npm: 5.5.1
node: 8.9.3

I also reproduced it in another machine with

OS: Ubuntu 16.04 LTS
npm: 5.6.0
node: 8.9.3

from graphql-cli.

loremaps avatar loremaps commented on May 16, 2024

It seems that the problem is caused by the
jonschlijonschlinkert/npm-paths dependency; which does not return the correct paths for my case. If I hardcode my global npm path here:
https://github.com/graphql-cli/graphql-cli/blob/be73eec100749f07dcfe2ad978ee5dcea195b1fc/src/index.ts#L29

The error is no longer reported.

Specifically, the first path returned by the npmPaths() is:
/home/username/tests/graphql-cli/~/.npm-global/lib/node_modules
but in my case the correct path is:
/home/username/.npm-global/lib/node_modules

from graphql-cli.

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.