Comments (5)
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.
Fixed in the latest release 2.1.3
. Thanks @schickling
from graphql-cli.
Is anybody else experiencing this problem?
@loremaps would be good to know more about your setup: OS, Node version, NPM version
from graphql-cli.
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.
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)
- Automatic releases of the GraphQL-CLI HOT 13
- har-validator error not found module har-validator\lib\promise.js
- Seems to be broken if you use with other CLI tools while using PNPM as package manager HOT 4
- Support for .graphqlrc.js HOT 1
- text defect HOT 4
- Action Required: Fix Renovate Configuration
- 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' with using npx graphql-cli init
- graphql accepts arbitrary commands without throwing HOT 1
- Environment variables don't work within the .graphqlrc.yml or .graphqlrc.json HOT 5
- Great library
- Commands silently fail HOT 3
- Fix vulnerable dependencies HOT 1
- TypeError: loader.loaderId is not a function HOT 9
- Dependency Dashboard
- Added AUR package
- graphql codegen init missing plugin
- `utils.memoize2of4` is not a function HOT 1
- Duplicate identifier error in generated types file graphql.ts
- Support graphql 16
- Deprecated status HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-cli.