centos7安装hexo时,执行hexo init命令出现问题

  • Post author:
  • Post category:其他



问题:


INFO Cloning hexo-starter https://github.com/hexojs/hexo-starter.git

WARN git clone failed. Copying data instead

FATAL {


err: [Error: ENOENT: no such file or directory, scandir ‘/usr/local/lib/node_modules/hexo/node_modules/hexo-cli/assets’] {


errno: -2,

code: ‘ENOENT’,

syscall: ‘scandir’,

path: ‘/usr/local/lib/node_modules/hexo/node_modules/hexo-cli/assets’

}

} Something’s wrong. Maybe you can find the solution here: %s http://hexo.io/docs/troubleshooting.html


解决方案:


很明显,没有安装git,在xshell下执行

sudo yum install -y git

即可



版权声明:本文为qq_33677819原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。