服务器安装hexo可能遇到的问题

  • nodejs版本过低
    1. 安装n模块
      1
      npm install -g n
    2. 直接输入n stable,升级到nodejs最新稳定的版本
  • 没有git
    1. yum install git
  • Peer reports incompatible or unsupported protocol version.
    1. 升级curl就好了
      1
      yum update -y nss curl libcurl
  • Error: ENOENT: no such file or directory, uv_cwd
    1. 重启终端再次执行hexo init