Closed kuole-o closed 1 year ago
hexo 命令嵌入用的是这个 API (https://hexo.io/api/console)。 怀疑你是不是没有 npm install 全?
hexo 命令嵌入用的是这个 API (https://hexo.io/api/console)。 怀疑你是不是没有 npm install 全?
不应该啊,本地直接 npm install 安装的,GitHub action 里也是这样。而且,本地已经正常预览了的
本地能正常的话,那应该就是你 github action 配置的有问题。。。这块我没配过,不太清楚。。。
问题已解决,原因我也不知道…………我只是在 GitHub action 配置文件里,被 node 和 hexo 安装顺序调整了一下,就正常了…………好神奇。调整后内容如下:
- name: Install Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.15
- name: Install Hexo
run: |
export TZ='Asia/Shanghai'
npm install hexo-cli -g
hexo -v
目前本地生成、预览都没有问题。部署后,页面没有豆瓣电影的数据:查看我的电影页面
已确认 hexo / node ,本地和 github action 构建时,都是相同的版本。提示 hexo douban 不是命令,也是我查看 github action 日志发现的。
已经配置了
builtin: true
,但是构建后,确实没有数据。我又自己再 github action 的流程配置中,hexo generate
下新增了hexo douban
命令,于是收到了上述的错误:help, you can use 'hexo help [command]' for the detailed informationgithub action 流程配置部分为:
github action log
疑惑
hexo-douban
是如何将hexo douban
命令插入的?假如不能正常识别运行hexo douban
,我还可以用其他什么命令来触发hexo douban
的渲染流程吗?求解