解决hexo+github+NexT搭建个人博客遇到的问题

1、报错不识别num命令:
bash: num: command not found
未安装node.js或未正确安装node.js
官方下载地址:
https://nodejs.org/en/

下载安装时选择安装所有的有关联的包

2.报错:执行$ hexo init 时报错:

$ hexo init blog
bash: hexo: command not found

原因:hexo没有配置全局变量
解决:找到安装位置,把下面的两个地址添加到环境变量中的path中,
在这里插入图片描述
重启Git bash,执行hexo -v
在这里插入图片描述
则已经正确添加

-------------本文结束感谢您的阅读-------------