aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
461 stars 116 forks source link

Failing on patching AWS Amplify latest version #3917

Closed shilpigoodfin closed 5 months ago

shilpigoodfin commented 7 months ago

Describe the bug The pipeline to deploy to staging is broken due to amplify latest version not getting patched. 2024-04-02T21:43:15.695Z [ERROR]: !!! Error patching NPM package '@aws-amplify/cli' to version latest. Verify the package name and version are correct, and retry the build. For help see our docs: https://docs.aws.amazon.com/amplify/latest/userguide/custom-build-image.html

Screenshots

Screenshot 2024-04-02 at 2 49 14 PM

2024-04-02T21:42:46.167Z [INFO]: # Cloning repository: git@github.com:goodfin/goodfin_aws.git 2024-04-02T21:42:48.253Z [INFO]: 2024-04-02T21:42:48.254Z [INFO]: Cloning into 'goodfin_aws'... 2024-04-02T21:42:48.254Z [INFO]: # Checking for Git submodules at: /codebuild/output/src3261265033/src/goodfin_aws/.gitmodules 2024-04-02T21:42:48.263Z [INFO]: # Retrieving environment cache... 2024-04-02T21:42:48.320Z [INFO]: # Retrieved environment cache 2024-04-02T21:42:48.320Z [INFO]: ---- Setting Up SSM Secrets ---- 2024-04-02T21:42:48.320Z [INFO]: SSM params {"Path":"/amplify/d3jd584ikuog9o/staging/","WithDecryption":true} 2024-04-02T21:43:09.740Z [INFO]: # Node version 18 is available for installation 2024-04-02T21:43:09.859Z [INFO]: # Installing Node version 18 2024-04-02T21:43:14.150Z [INFO]: # Now using Node version 18 2024-04-02T21:43:15.119Z [WARNING]: Cannot find module '/root/.nvm/versions/node//lib/node_modules/@aws-amplify/cli/package.json' Require stack:

timngyn commented 7 months ago

👋 Hi @shilpigoodfin, this isn't the right place for this issue because this is the repo for the Amplify Documentation site, https://docs.amplify.aws/

You will get more help from here: https://github.com/aws-amplify/amplify-hosting, where you can reach out to AWS support to get some help or search through any of the existing issues related to Amplify Hosting to see if problem has already been solved: https://github.com/aws-amplify/amplify-hosting/issues

Looking at your PR description though, have you tried following the instructions for using the new build image at the bottom of your message?

A new default build image based on Amazon Linux 2023 is now generally available. The image includes newer versions of Node.js, Python, and Ruby that you can use to build your app. To use the new image, select "Amazon Linux:2023" in the "Build settings" section for your app in the Amplify console.

mauerbac commented 5 months ago

If you are still experiencing this can you open an AWS support case?

github-actions[bot] commented 5 months ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] commented 5 months ago

This issue has been automatically locked.