Broken graphql-cli install
gitxav opened this issue · comments
Describe the bug
graphql-cli 'create' command does not generate the right directory structure for new projects. In fact it mixes files in a single root folder.
In addition, it doesn't prompts for any cluster configuration as 'prisma deploy' command does for example.
To Reproduce
$ npm install -g graphql-cli
$ graphql create app & cd app
$ npm i
Expected behavior
Well-formed generated boilerplate
Screenshots
Versions
- OS:
Ubuntu 16.04
graphql-cli
:3.0.5
- node v10.15.0 and npm v6.6.0
Additional context
The graphql-cli install throws peer dependency warnings itself:
npm WARN graphql-import@0.4.5 requires a peer of graphql@^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN apollo-codegen-core@0.20.1 requires a peer of graphql@^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN graphql-static-binding@0.9.3 requires a peer of graphql@^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN @kbrandwijk/swagger-to-graphql@2.4.3 requires a peer of graphql@^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
The generated app complains too:
warning " > graphql-boilerplate-install@0.1.9" has unmet peer dependency "prisma@1.3.2".
Thanks in advance.
Have you tried to update whole dependecies by yarn upgrade
?
Anyway, logs look like a missing packages you can take attention to adding a peer dependecies manually, or move them form dev-dependecies to dependencies in package.json
.
We have just released a new structure for GraphQL CLI in a new alpha versions track - 4.0.0-alpha.XXX
!
We suggest to use the init
command of GraphQL CLI which was completely rewritten!
Checkout the new instructions and the migration guide on the docs and let us know your feedback.
Feel free to contact us by opening an issue or using our Discord channel;
https://discord.gg/xud7bH
I've posted the wrong Discord link, this is the correct one: https://discord.gg/xud7bH9