aws-amplify / aws-amplify/amplify-cli
Using npm to install amplify will fail quietly if let run for ~5 mins
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-cli/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-cli/blob/dev/CONTRIBUTING.md#bug-reports).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
### How did you install the Amplify CLI?
npm i -g @aws-amplify/cli
### If applicable, what version of Node.js are you using?
v16.18.0
### Amplify CLI Version
10.2.3
### What operating system are you using?
Ubuntu
### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made, just having issues installing Amplify.
### Amplify Categories
Not applicable
### Amplify Commands
Not applicable
### Describe the bug
When managing Amplify installation through NPM, installation hangs for ~5 minutes, then fails quietly but stores a file with javascript in npm folder along with a symlink between amplify and that folder.
No binaries are ever stores and whenever any Amplify command is run app will hang saying "Downloading release from https://package.cli.amplify.aws/10.2.3/amplify-pkg-linux-x64.tgz"
### Expected behavior
Expected to fail when trying to install binary files in the wrong folder location saying something like "this is not how you should be installing Amplify on an Linux machine, read the docs."
### Reproduction steps
To recreate this issue I ran a linux virtual machine and tried to Amplify. I was using a virtual machine and running Linux Ubuntu 20.04
Prerequisites
1. Create a virtual machine
2. ssh and Install nvm (`$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash`)
3. Use nvm to select and install Node with lts version (`nvm install --lts`, node --version v16.18.10)
4. check npm version ( `npm --version`, expected 8.19.2)
5. Install amplify, `npm install -g @aws-amplify/cli `. This will hang for some time ~5 minutes and then successfully exit
6. Try to run any amplify script (`amplify --version`) and you will get an attempt to install the binary.
### GraphQL schema(s)
N/A
### Project Identifier
n/a
### Log output
`Downloading release from https://package.cli.amplify.aws/10.2.3/amplify-pkg-linux-x64.tgz`
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.