amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Command Issue Still unable to resolve

Open RFason opened this issue 4 years ago • 3 comments

Hey @RFason thanks for clarifying. Moving forward I would make sure:

  • Node and NPM are installed
  • npm bin -g is a part of our PATH environment variable
  • after @aws-amplify/amplify-cli is installed with npm i -g @aws-amplify/amplify-cli, we can confirm the binary is available with which amplify

For reference, we can alternatively use a Node version manager like nvm, more info can be found on the npm docs

We can also set a custom npm prefix

With that I will close this issue for now, however if needed we can re-open to investigate further. Please use the NPM docs as a point of reference for troubleshooting globally installed packages and binaries not available

Originally posted by @josefaidt in https://github.com/aws-amplify/amplify-cli/issues/10127#issuecomment-1089142416

  • Node is installed -v16.14.2 -NPM is installed. -8.5.0 -NVM is installed

Still unable to install Amplify CLI

RFason avatar Apr 05 '22 18:04 RFason

Tried using - npm i -g @aws-amplify/amplify-cli

Received this error

npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@aws-amplify%2famplify-cli - Not found npm ERR! 404 npm ERR! 404 '@aws-amplify/amplify-cli@*' is not in this registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

RFason avatar Apr 05 '22 18:04 RFason

Hey @RFason my apologies the npm package name is @aws-amplify/cli

josefaidt avatar Apr 05 '22 18:04 josefaidt

I've also re-opened the other issue and will be closing this in favor of tracking existing issue. In the future, please consider filing an issue using our structured bug report template, which can help us gather additional context around your environment and the issue you're experiencing.

josefaidt avatar Apr 05 '22 18:04 josefaidt