David Kimura PRO said about 3 years ago on Deploying to Amazon Linux 2 :
WIthin the EC2 instance, what do you get when you run yarn -v?