记录创建博客时的报错

生成SSH密钥保存位置

  • 错误:将 “.ssh/id_rsa” 存入D盘下的文件夹中
  • 解决:应将其存入 “C/Users/” 文件夹中

运行 “ssh -T git@github.com” 时报错

  • 错误:Permission denied (publickey). fatal: Could not read from remote repository.
  • 解决:将得到的密钥添加到github中

运行 “hexo init” 初始化hexo时报错

  • 错误1:三行 Info 中第二行报错:
  • 解决: 一般是github访问问题,建议使用加速器
  • 错误2:三行 Info 中第三行报错:
    Failed to install dependencies. Please run ‘npm install’ manually!。且 执行"npm install"失败
  • 解决: 这是因为没用使用管理员模式打开 git bash 建议在 修改 git-bash.exe 默认使用管理员启动

运行 “hexo d” 时报错

  • 错误:ERROR Deployer not found: git
  • 解决:
    • 如果没有安装 hexo-deployer-git 插件 先安装
    1
    npm install hexo-deployer-git --save
    • 先在github上创建网站库 再尝试

打开创建好的网站时报错404

  • 解决:作者起初使用了与github用户名不同的名字作为库名即网站名,出现404,再修改为与github用户名相同后,且修改 _config.yml 文档相关信息后成功打开