hexo升级及升级后的问题


hexo升级及升级后的问题

hexo升级

首先升级node.js,去官网下载最新安装包,接着执行以下命令升级hexo

npm install -g npm-check-updates # 安装更新工具
ncu # 检查npm软件包更新,需在项目根目录下执行
ncu -u # 更新package.json配置
npm install # 安装package.json配置的版本
hexo version # 更新后检查hexo版本

升级后的问题

升级后执行hexo d部署提交时报错

at ChildProcess.<anonymous> (D:\blog\node_modules\_hexo-util@1.9.0@hexo-util\lib\spawn.js:51:21)
    at ChildProcess.emit (events.js:310:20)
    at ChildProcess.cp.emit (D:\blog\node_modules\_cross-spawn@7.0.2@cross-spawn\lib\enoent.js:34:29)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)

这时候你需要执行ssh -T git@github.com测试是否连接正常,若失败报错

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be
eavesdropping on you right now (man-in-the-middle attack)! It is also
possible that a host key has just been changed. The fingerprint for the RSA
key sent by the remote host is [truncated]. Please contact your system
administrator. Add correct host key in /home/username/.ssh/known_hosts to
get rid of this message. Offending RSA key in
/home/username/.ssh/known_hosts:24 Password authentication is disabled to
avoid man-in-the-middle attacks. Keyboard-interactive authentication is
disabled to avoid man-in-the-middle attacks. Agent forwarding is disabled to
avoid man-in-the-middle attacks.

则先去github重新绑定秘钥(如果原来的掉了),步骤和安装是一样,然后去c/Users/youuser/.ssh下删除c:\users\username\.ssh\known_hosts这个文件,重新执行ssh -T git@github.com,选择yes,连接成功,再进行hexo d提交。


文章作者: 0xdadream
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 0xdadream !
评论
  目录