Solve Error: Run 'hexo g', got 'Killed'

2021/4/11 10:57:15

本文主要是介绍Solve Error: Run 'hexo g', got 'Killed',对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

When you run hexo g on any web instances, like on AWS or Azure, you might get the following error:

(node:3568) ExperimentalWarning: The fs.promises API is experimental
INFO  Validating config
INFO  Start processing
Killed

Solution:

This might be caused by running out of memory, try to run the following command:

free -m 
dd if=/dev/zero of=/swap bs=4096 count=1572864
mkswap /swap
swapon /swap
echo "LABEL=SWAP-sda /swap swap swap defaults 0 0" >> /etc/fstab


这篇关于Solve Error: Run 'hexo g', got 'Killed'的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程