skip to Main Content

Today i have an error when trying to deplyo my amplify app

It says:

✖ There was an error initializing your environment.
2023-03-15T15:49:07.075Z [INFO]: 🛑 No package manager found.
2023-03-15T15:49:07.075Z [INFO]: Resolution: Install npm or yarn to
compile overrides for this project.

I have no idea where this came from. I try to re-deploy an working version but i get exact the same error.

This only happens during deployment when i do git push

When i do amplify push it works fine.

Does somebody experience this same error?

2

Answers


  1. Chosen as BEST ANSWER

    It was a problem with aws-amplify/cli version 11.0.0

    I paginated back to the version that worked, and it used version 10.8.1

    Now i updated my amplify.yml file:

    build:
      commands:
        - npm uninstall @aws-amplify/cli
        - npm install @aws-amplify/[email protected]
        - amplifyPush --simple
    

    After unintall the current amplify/cli version and installing an older one that worked, it deploys now without errors!


  2. I solved like this;

    Build settings ->Build image settings-> Edit->Live package updates:

    Amplify CLI: 10.5.3-circular-dep-fix.0

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search