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