很正常吧,你运行./hexo看看?
cd
find . -type f -name 'hexo'
./.nvm/versions/node/v10.24.1/lib/node_modules/hexo-cli/bin/hexo -h
实在解决不了就用它的另外一种方式
git clone https://ghproxy.com/https://github.com/user/hexo-cli --recurse-submodules && cd hexo-cli/
npm install
这是npm的包管理提示,没出现err,也没有需要处理的异常。
npm install -g hexo
hexo v # 查看版本
# 创建一个目录,用于未来博客运转的目标文件夹,写文、主题安装等,my-hexo
# 在my-hexo目录下
hexo init # 初始化
# 进入theme文件夹,创建一个主题文件夹my-theme
# 在theme目录下
git clone https://github.com/theme-next/hexo-theme-next my-theme # 下载主题
# 修改配置文件_config.yml,修改 theme 后面的名字为刚才创建的文件夹my-theme
# 部署
hexo g
hexo s
# 预览 http://localhost:4000
hexo+github个人博客搭建(亲身经历超详解)
https://blog.csdn.net/m0_73084903/article/details/127958926
这个不是报错,是安装成功后的信息,可以运行hexo试试看