<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hexo on Time Friend</title><link>https://time-friend.com/en/tags/hexo/</link><description>Recent content in Hexo on Time Friend</description><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Wed, 29 Jul 2026 15:15:07 +0800</lastBuildDate><atom:link href="https://time-friend.com/en/tags/hexo/index.xml" rel="self" type="application/rss+xml"/><item><title>Automated Deployment of Hugo, Hexo Blog with Travis CI</title><link>https://time-friend.com/en/archive/automated-deployment-hugo-hexo-blog-with-travis-ci/</link><pubDate>Tue, 20 Nov 2018 16:14:25 +0000</pubDate><guid>https://time-friend.com/en/archive/automated-deployment-hugo-hexo-blog-with-travis-ci/</guid><description>&lt;h1 id="what-is-travis-ci"&gt;What is Travis CI?&lt;/h1&gt;
&lt;p&gt;Travis CI is an online hosted CI service. Using Travis for continuous integration doesn&amp;rsquo;t require setting up your own server. Most importantly, it&amp;rsquo;s free for open source projects.
If company uses gitlab, it also provides corresponding continuous integration services. Won&amp;rsquo;t elaborate here.&lt;/p&gt;
&lt;h1 id="travis-ci-configuration-file"&gt;Travis CI Configuration File&lt;/h1&gt;
&lt;p&gt;Travis requires project root directory must have a &lt;code&gt;.travis.yml&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;When your repository has commits, travis will automatically execute the behaviors you configured below.&lt;/p&gt;</description></item><item><title>Hexo Process Out of Memory Issue</title><link>https://time-friend.com/en/archive/hexo-process-out-of-memory/</link><pubDate>Tue, 13 Nov 2018 21:32:05 +0000</pubDate><guid>https://time-friend.com/en/archive/hexo-process-out-of-memory/</guid><description>&lt;h2 id="hexo-memory-overflow-issue"&gt;Hexo Memory Overflow Issue&lt;/h2&gt;
&lt;p&gt;When Hexo generates around 1000 articles, this issue may occur.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="solution"&gt;Solution:&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Find hexo command location&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;which hexo
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Edit the first line of the hexo command&amp;rsquo;s bin file to the following content.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-js" data-lang="js"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;#!/usr/bin/env node --max_old_space_size=8192
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This temporarily solves the memory overflow issue.&lt;/p&gt;
&lt;h2 id="hexo-performance"&gt;Hexo Performance&lt;/h2&gt;
&lt;p&gt;Hexo&amp;rsquo;s performance is indeed much worse than Hugo. For the same 1000+ pages, Hugo only took less than 2s.
This makes me hesitate whether to abandon using Hexo.&lt;/p&gt;</description></item><item><title>Hexo DTraceProviderBindings MODULE_NOT_FOUND Issue</title><link>https://time-friend.com/en/archive/hexo-dtrace-provider-bindings-module-not-found/</link><pubDate>Sun, 19 Feb 2017 21:32:05 +0000</pubDate><guid>https://time-friend.com/en/archive/hexo-dtrace-provider-bindings-module-not-found/</guid><description>&lt;p&gt;Recently installing Hexo on Mac, always getting error DTraceProviderBindings MODULE_NOT_FOUND;&lt;/p&gt;
&lt;h2 id="first-type-of-error"&gt;First Type of Error&lt;/h2&gt;
&lt;p&gt;Error command as follows:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;{ [Error: Cannot find module &amp;#39;./build/Release/DTraceProviderBindings&amp;#39;] code: &amp;#39;MODULE_NOT_FOUND&amp;#39; }
{ [Error: Cannot find module &amp;#39;./build/default/DTraceProviderBindings&amp;#39;] code: &amp;#39;MODULE_NOT_FOUND&amp;#39; }
{ [Error: Cannot find module &amp;#39;./build/Debug/DTraceProviderBindings&amp;#39;] code: &amp;#39;MODULE_NOT_FOUND&amp;#39; }
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Although Hexo&amp;rsquo;s generate and publish functions weren&amp;rsquo;t affected. But every time running commands, it would error. Very annoying;&lt;/p&gt;
&lt;p&gt;Common method online is:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;npm install hexo --no-optional
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;But, my computer still had no effect;&lt;/p&gt;</description></item></channel></rss>