amazon-archives / awsmobile-cli

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

awsmobile init doesn't add aws-amplify and related deps to package.json #149

Closed claym closed 6 years ago

claym commented 6 years ago

Running on Windows 10, node 10.4.0, npm 6.1.0

I'm working off Building Serverless Mobile Applications with React Native & AWS which indicates that 'awsmobile init', at which point we

should now see aws-amplify & aws-amplify-react-native in your package.json

However, I'm not seeing that. There are no errors in the awsmobile init output

Log, creating fresh project: https://gist.github.com/claym/54376b5787e6791b4f1b342f6b8cf957

UnleashedMind commented 6 years ago

We haven't tested the CLI on node version 10.X yet, but that might not be the cause of the issue. In the logs, I don't see the CLI prints out the welcome message, it means the init process has not been completed successfully. The CLI only install dependency on aws-amplify and aws-amplify-react(-native) upon successfully initializing your project. It might be because you have not provided the correct aws credentials to the awsmobile-cli configuration, and your backend mobile hub project has not been created.

claym commented 6 years ago

I just ran it with node 8.11.2 and npm 5.6.0, and it seems to have behaved correctly.

I used the same aws credentials.

elorzafe commented 6 years ago

I tested awsmobile-cli with node 10.4.0 and it works well on macOS Sierra