3 ms·
Well, this could be because you are running out of memory, which results in the yarn build process getting killed. The simplest solution is to enable "swap" in
by bhattisatish 6y ago
Well, this could be because you are running out of memory, which results in the yarn build process getting killed. The simplest solution is to enable "swap" in your instance by using the following commands:
dd if=/dev/zero of=/swapfile bs=1M count=1024
sudo chown root:root /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
add /etc/fstab
/swapfile swap swap
defaults 0 0
#echo 0 > /proc/sys/vm/swappiness
sudo sysctl vm.swappiness=10
add to /etc/sysctl.conf
vm.swappiness=10
All I am doing is creating a swap file of 1GB and enabling it with a not so aggressive swappinness on the kernel.