Skip to content

Commit

Permalink
Site updated: 2024-08-24 14:43:31
Browse files Browse the repository at this point in the history
  • Loading branch information
mingwhy committed Aug 24, 2024
1 parent c344d2d commit 92f987b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 2022/08/01/set-up-blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h1 id="hexo-d遇到问题"><a href="#hexo-d遇到问题" class="headerlink" tit
<p><img src="/images/error-message.png"></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">Error: Spawn failed</span><br><span class="line"> at ChildProcess.&lt;anonymous&gt; (/Users/ming/mySpace/blog/node_modules/hexo-deployer-git/node_modules/hexo-util/lib/spawn.js:51:21)</span><br><span class="line"> at ChildProcess.emit (events.js:314:20)</span><br><span class="line"> at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)</span><br></pre></td></tr></table></figure>

<p>我用的是第三种解决方式:’有可能是你的git repo配置地址不正确,可以将http方式变更为ssh方式‘<br>在_config.yml文件中修改为<code>repo: https://[token]@github.com/GitHub用户名/GitHub用户名.github.io.git</code>.<br>然后,操作</p>
<p>我用的是第三种解决方式:’有可能是你的git repo配置地址不正确,可以将http方式变更为ssh方式‘<br>在_config.yml文件中修改为<code>repo: https://[token]@github.com/GitHub用户名/GitHub用户名.github.io.git</code>.<br>如果有代理的话,先关掉代理,然后,操作</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">##进入站点根目录</span><br><span class="line">cd blog</span><br><span class="line">##删除git提交内容文件夹</span><br><span class="line">rm -rf .deploy_git/</span><br><span class="line">##执行</span><br><span class="line">git config --global core.autocrlf false</span><br><span class="line">##最后</span><br><span class="line">hexo clean &amp;&amp; hexo g &amp;&amp; hexo d</span><br></pre></td></tr></table></figure>

<h1 id="Hexo写文章"><a href="#Hexo写文章" class="headerlink" title="Hexo写文章"></a>Hexo写文章</h1><p>参考 </p>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h1 id="hexo-d遇到问题"><a href="#hexo-d遇到问题" class="headerlink" tit
<p><img src="/images/error-message.png"></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">Error: Spawn failed</span><br><span class="line"> at ChildProcess.&lt;anonymous&gt; (/Users/ming/mySpace/blog/node_modules/hexo-deployer-git/node_modules/hexo-util/lib/spawn.js:51:21)</span><br><span class="line"> at ChildProcess.emit (events.js:314:20)</span><br><span class="line"> at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)</span><br></pre></td></tr></table></figure>

<p>我用的是第三种解决方式:’有可能是你的git repo配置地址不正确,可以将http方式变更为ssh方式‘<br>在_config.yml文件中修改为<code>repo: https://[token]@github.com/GitHub用户名/GitHub用户名.github.io.git</code>.<br>然后,操作</p>
<p>我用的是第三种解决方式:’有可能是你的git repo配置地址不正确,可以将http方式变更为ssh方式‘<br>在_config.yml文件中修改为<code>repo: https://[token]@github.com/GitHub用户名/GitHub用户名.github.io.git</code>.<br>如果有代理的话,先关掉代理,然后,操作</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">##进入站点根目录</span><br><span class="line">cd blog</span><br><span class="line">##删除git提交内容文件夹</span><br><span class="line">rm -rf .deploy_git/</span><br><span class="line">##执行</span><br><span class="line">git config --global core.autocrlf false</span><br><span class="line">##最后</span><br><span class="line">hexo clean &amp;&amp; hexo g &amp;&amp; hexo d</span><br></pre></td></tr></table></figure>

<h1 id="Hexo写文章"><a href="#Hexo写文章" class="headerlink" title="Hexo写文章"></a>Hexo写文章</h1><p>参考 </p>
Expand Down

0 comments on commit 92f987b

Please sign in to comment.