[hexojs/hexo]没有主题,也没有任何样式。hexo s在本地是正常的

2023-12-21 329 views
0
环境信息

win64 节点版本( node -v): $ node -v v8.10.0

您的站点_config.yml(可选):部署:类型:git repo:git@github.com:sallyslove/sallyslove.github.io.git分支:master

你的主题_config.yml(可选):没改,就是默认的

Hexo 和插件版本( npm ls --depth 0): $ npm ls --depth 0 hexo-site@0.0.0 C:\Lynn\private\hexo-blog +-- hexo@3.8.0 +-- hexo-deployer-git@0.3。 1 +-- hexo-generator-archive@0.1.5 +-- hexo-generator-category@0.1.3 +-- hexo-generator-index@0.2.1 +-- hexo-generator-tag@0.2.0 + -- hexo-renderer-ejs@0.3.1 +-- hexo-renderer-marked@0.3.2 +-- hexo-renderer-stylus@0.3.3 `-- hexo-server@0.2.2

对于问题

跟着教程做了一些,hexo s没有任何问题,hexo d也没有报错。本地上的服务器是正常的,部署之后的明显没有部署上去,新加的帖子也没有出来。没有任何主题和样式全程没有明显$ hexo deploy --debug 09:06:34.471 DEBUG 将数据库写入 C:\Lynn\private\hexo-blog/db.json 09:06: 的错误。chrome开发者模式也没有错误,不知道哪里不对了。 34.501 DEBUG Hexo 版本:3.8.0 09:06:34.501 DEBUG 工作目录:C:\Lynn\private\hexo-blog\ 09:06:34.801 DEBUG 配置已加载:C:\Lynn\private\hexo-blog_config.yml 09 :06:34.871 加载调试插件:hexo-deployer-git 09:06:34.881 加载调试插件:hexo-generator-archive 09:06:34.881 加载调试插件:hexo-generator-index 09:06:34.891 加载调试插件: hexo-generator-category 09:06:34.891 加载调试插件:hexo-generator-tag 09:06:34.901 加载调试插件:hexo-renderer-ejs 09:06:34.901 加载调试插件:hexo-renderer-marked 09:06 :34.911 DEBUG 插件已加载:hexo-renderer-stylus 09:06:35.031 DEBUG 已加载插件:hexo-server 09:06:35.031 DEBUG 已加载脚本:themes\landscape\scripts\fancybox.js 09:06:35.041 DEBUG 数据库已保存

回答

8

_config.yml里的url,root没改吧

0

有这几个警告: npm WARN deprecated swig@1.4.2: 此软件包不再维护 npm WARN option SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents @1.2.4:想要{“os”:“darwin”,“arch”:“any”}(当前:{“os”:“win32”,“arch”:“x64”})

报没有错误

7

部署后我没有 .deploy_git 。这样对吗?

4

大家好,我仍在为此苦苦挣扎。现在我怀疑hexo init命令不对。

   $ git status .
   fatal: not a git repository (or any of the parent directories): .git

   It shows the blog directory is not a git repo. But I think it should be one ?
4

配置文件中的配置错误。关闭问题

4

您好 我出现相同的问题怎么解决呢?

0

你好,我其实是配置的配置的位置,少了一个空格。你看看是不是配置文件有问题。

3

谢谢,我已经解决了,我是自己的域名有点问题,域名得和你的用户名完全一样才行。