Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

graphql-cli doesn't create folders on Windows #277

Closed
travis-r6s opened this issue Apr 23, 2018 · 7 comments
Closed

graphql-cli doesn't create folders on Windows #277

travis-r6s opened this issue Apr 23, 2018 · 7 comments
Labels

Comments

@travis-r6s
Copy link

System:
Windows 10
Node v9.6.1
graphql-cli v2.15.9

I installed prisma, and created a new project with prisma init projectname.
It went through the first two questions, e.g. database or full boilerplate, then asked what boilerplate. I selected node-advanced. It then downloaded the boilerplate and then installed all dependencies. However, there it stops. According to the docs, it should ask where to deploy it… so I then tried manually running prisma deploy and it throws a couple of errors, saying --\database\prisma.yml could not be found. as well as the prisma.yml. I opened the folder, and found it has installed the boilerplate like the below image.

capture

I then tried graphql create projectname --boilerplate node-advanced, as per this suggestion. However, the same thing happens. It seems to be appending the folder name to the filename, rather than creating a directory.

I then tried this using bash on windows, and everything worked perfectly. So I am thinking it must be a windows issue?

@marktani
Copy link
Contributor

I then tried this using bash on windows

How did you try it before if not bash?

@travis-r6s
Copy link
Author

Following this doc, It seems to suggest you can use Windows. So I was just using Powershell.

To clarify: when I said bash on windows, I meant Ubuntu on windows, i.e WSL.

@mauricedb
Copy link

Same issue here when I use graphql create my-app --boilerplate react-fullstack-basic on Windows 10.

The same behavior when I use a standard command shell, Powershell or a MINGW64 Bash shell.

End result:

$ ls my-app/
LICENSE                              server_src_index.js
node_modules/                        server_src_schema.graphql
package.json                         server_yarn.lock
public__redirects                    src_assets_close.svg
public_favicon.ico                   src_assets_plus.svg
public_index.html                    src_components_CreatePage.js
README.md                            src_components_DetailPage.js
server_.gitignore                    src_components_DraftsPage.js
server_.graphqlconfig.yml            src_components_FeedPage.js
server_database_datamodel.graphql    src_components_Post.js
server_database_prisma.yml           src_constants_modalStyle.js
server_database_seed.graphql         src_index.css
server_package.json                  src_index.js
server_src_generated_prisma.graphql  yarn.lock

Node: v9.8.0
graphql-cli: 2.15.11
Windows 10: 1709

@jeffshadap
Copy link

Same issue on Windows 10

@jeffshadap
Copy link

Works fine with adm-zip@0.4.7
cthackers/adm-zip#221
cthackers/adm-zip#220

@cktang88
Copy link
Contributor

cktang88 commented May 4, 2018

This also fixes graphql-boilerplates/node-graphql-server#302

@travis-r6s
Copy link
Author

travis-r6s commented May 4, 2018

👍

v2.15.14 works fine now, but v2.16.0-beta.6 still seems to have the same issue?

Just FYI.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants