Hexo

Last updated on 9 months ago

文档 | Hexo

Hexo Fluid 用户手册 (fluid-dev.com)

安装cnpm

1
npm install -g cnpm --registry=https://registry.npm.taobao.org

安装 hexo-cli

1
2
3
cnpm install -g hexo-cli

cnpm install hexo --save

查看hexo版本

1
hexo -v

hexo初始化

1
hexo init

安装套件

1
cnpm install

hexo安装git组件

1
npm install hexo-deployer-git --save

错误

  1. Please make sure you have the correct access rights
    and the repository exists.
    FATAL {
      err: Error: Spawn failed
          at ChildProcess.<anonymous> (E:\Hexo_New\node_modules\_hexo-util@2.6.0@hexo-util\lib\spawn.js:51:21)
          at ChildProcess.emit (node:events:390:28)
          at ChildProcess.cp.emit (E:\Hexo_New\node_modules\_cross-spawn@7.0.3@cross-spawn\lib\enoent.js:34:29)
          at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
        code: 128
      }
    } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
    

    遇到上述问题,两个方面

    1. 没有生产rsa秘钥,这种好整,生成即可
    2. 生产了,而且是多个秘钥,命令找了找没有找到要找得,需要先执行debug ssh -v git@github.com,这里如果是gitee或者别的平台,可以改成ssh -v git@gitee.com,我这里是把本地 ~/.ssh/下生成的秘钥改成debug里要看到的秘钥即可,当然也可以告诉git,要走ssh下的哪个rsa key.

Hexo
http://example.com/2021/11/19/Hexo/
Author
Harris
Posted on
November 19, 2021
Licensed under