AWS Elastic Beanstalk, Npm errors can't download packages

Solution 1:

I don't really understand why, but it seems that the host was not powerful enough, I've changed the instance from t2.micro to t2.small, and it worked

I think the server was indeed not big enough for what I wanted to use it for, but the errors needs to be a bit more precise