I've updated the installation instructions for amazon linux.
https://jsreport.net/learn/amazon-linux
Unfortunately, you need to use the Amazon Linux 2023, because the older Amazon Linux 2 doesn't have the required libs to run later nodejs. If you need to stick with Amazon Linux 2, use docker.