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
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:After unintall the current amplify/cli version and installing an older one that worked, it deploys now without errors!
I solved like this;
Build settings ->Build image settings-> Edit->Live package updates:
Amplify CLI:
10.5.3-circular-dep-fix.0