ENOMEM issues on your VPS during that npm i? Try This

Enable Virtual RAM!

sudo chmod 600 /swapfile;  
sudo mkswap /swapfile  
sudo swapon /swapfile;  
sudo swapon —show;  

(don't leave it on, your VPS company may get pissed)