首页 > Hexo 使用 rsync 部署到 vps 上时出现错误。

Hexo 使用 rsync 部署到 vps 上时出现错误。

背景:

之前按照官方的文档我前面已经成功部署到了 github 上,然后我想使用 rsync 的方式再将它部署到自己的 vps 上,vps 都设置好了。

然后本地通过 $ npm install hexo-deployer-rsync --save 也安装好了 rsync 的插件,并且添加了配置。

问题:

但通过 hexo -g d 提交的时候出现下面的错误提示:

bashINFO  Deploy done: git
INFO  Deploying: rsync
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: spawn rsync ENOENT
    at exports._errnoException (util.js:746:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
    at child_process.js:1144:20
    at process._tickCallback (node.js:355:11)

求问下这是什么错误呢?把代码拿去 Google 了下也找不到解决办法。求大神帮忙看看呀~小女子在此谢过了!


除了安装hexo-deployer-rsync插件,VPS 跟本地还需要同时安装 rsync。

【热门文章】
【热门文章】