EC2 , npm insall stops at typescript module [closed]

This is my first time using AWS to host a NodeJs (v14) application. I connected via SSH and cloned repository and tried to update node packages. The npm i command stopped in the middle of installing typescript@4.8.2! I tried both Amazon and Ubunto!

I installed typescript individual successfully, even globally!

any idea?