amplify-cli: npm install -g @aws-amplify/cli give error

Check the below command response

Command used : npm install -g @aws-amplify/cli

Response :

Chandras-MacBook-Pro:~ chandramoulireddyporeddy$ npm install -g @aws-amplify/cli
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/Users/chandramoulireddyporeddy/.npm-global/bin/amplify -> /Users/chandramoulireddyporeddy/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify
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.

+ @aws-amplify/cli@0.1.44
updated 3 packages in 96.79s

Chandras-MacBook-Pro:~ chandramoulireddyporeddy$ amplify configure
-bash: amplify: command not found
Chandras-MacBook-Pro:~ chandramoulireddyporeddy$ 

I hope you understand the above issue.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 34 (6 by maintainers)

Most upvoted comments

any solution?

Hey guys, please take a look at @jahnagoldman solution and if you’re still facing the issue, please let me know and we can re-open this issue.

I had the same issue and it was caused by a few factors. The above solutions won’t work unless you follow step #1 here.

1.) Amplify documentation doesn’t tell you to first install the AWS CLI, it assumes you already have. Go here to follow those instructions: [(https://docs.aws.amazon.com/cli/latest/userguide/install-linux-al2017.html)] 2.) Make sure your version of node is updated (common sense I know) I got a syntax error upon installing it again because I was somehow running 5. instead of 12.

Hope this helps!!