amazon-archives / awsmobile-cli

CLI experience for Frontend developers in the JavaScript ecosystem.
Apache License 2.0
142 stars 35 forks source link

Unable to start react demo #62

Closed teddarling closed 6 years ago

teddarling commented 6 years ago

Trying to follow the instructions at https://github.com/awslabs/aws-mobile-react-sample to create a react app.

I start by issuing awsmobile configure aws --profile my_profile to use my profile. I have also tested with just awsmobile configure to test things out

After configuring the CLI, and running awsmobile start app react, I expect an app inside the folder 'app'. Instead I get the following output from the command.

Creating project app Failed to download starter awslabs/aws-mobile-react-sample error: 'git clone' failed with status 128

So it just appears that somewhere it isn't able to download the starter to continue with. Based on the output, it seems that there is not a complete URL to the repository. That may not be the case, but something to look into and I will see what I can do just downloading the source and running awsmobile init instead

collinforrester commented 6 years ago

I was experiencing this same issue. Found this comment here - https://github.com/flipxfx/download-git-repo/issues/19#issuecomment-365971553

As soon as I removed clone = true from the downloadGitRepo call, everything started working.

So in awsmobilestarter-manager: downloadGitRepo(repo, tempDirPath, function (err) {

You want a PR?

UnleashedMind commented 6 years ago

Thanks @collinforrester , we will remove the clone option in our next update, please send a PR.

UnleashedMind commented 6 years ago

Please get the latest version of the cli (v1.0.15), this issue should have been resolved by that update.

UnleashedMind commented 6 years ago

I'm closing this issue for now, feel free to re-open it if you still get this problem.