awsmobile init doesn't add aws-amplify and related deps to package.json
claym opened this issue · 3 comments
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
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.
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.
I tested awsmobile-cli with node 10.4.0 and it works well on macOS Sierra