Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行 hexo s 命令后报错,无法启动 #25

Closed
4 tasks done
Xuu6770 opened this issue Jan 11, 2020 · 6 comments
Closed
4 tasks done

执行 hexo s 命令后报错,无法启动 #25

Xuu6770 opened this issue Jan 11, 2020 · 6 comments
Labels
🐞 Bug Something isn't working 🔌 3rd Party Service Third party service

Comments

@Xuu6770
Copy link

Xuu6770 commented Jan 11, 2020

I want to create a new issue

Stun Information

Stun Version: 1.5.4

Hexo Version: 4.2.0

Platform: Windows

Browser: Chrome

Expected behaviour

Actual behaviour

【Tonight I deleted all the commits from my blog repo, but I don't think this should be the main reason. Then when I upgraded HEXO to 4.2.0 and typed HEXO S, this happened:】

【今晚我将我的博客repo的commits全部删除了,不过我认为这个应该不是主要原因。随后当我将HEXO的升级至4.2.0并且键入HEXO S时出现了这样的情况:】

图片

【This does not happen with the official default theme "landscape". I tried to init HEXO and reset it according to the Hexo-theme-stun Docs, but it didn't work.】
【使用官方默认主题“landscape”则不会出现这种情况,我尝试初始化HEXO并按照中文文档进行重新设置,但是不起作用。】

Steps to reproduce the behaviour

Feature Request


@liuyib liuyib added ❗ Help Wanted Extra attention is needed 💬 Question Further information is requested 📌 Top Issue Topping 🚧 Work in Progress Work in progress labels Jan 12, 2020
@liuyib
Copy link
Owner

liuyib commented Jan 12, 2020

@SeiFujibayashi stun 主题的 scripts 里部分代码中,依赖于 cheerio 这个库,在 hexo 4.0 中它是 dependencies 依赖,会随着 hexo 一起安装,而在 hexo 4.2 中,它变成了 devdependencies 依赖,默认不会安装。因此使得 stun 主题无法运行,我会用最快的时间,修复这个问题。

@liuyib liuyib pinned this issue Jan 12, 2020
@liuyib liuyib changed the title Hexo s 出现问题 执行 hexo s 命令后报错,无法启动 Jan 12, 2020
liuyib added a commit that referenced this issue Jan 12, 2020
liuyib added a commit that referenced this issue Jan 12, 2020
liuyib added a commit that referenced this issue Jan 12, 2020
@liuyib
Copy link
Owner

liuyib commented Jan 12, 2020

@SeiFujibayashi 问题已解决:#25,使用命令:git pull origin dev 更新一下主题就可以了,过几天会发布新版本。

@liuyib liuyib removed the 🚧 Work in Progress Work in progress label Jan 12, 2020
@Xuu6770
Copy link
Author

Xuu6770 commented Jan 12, 2020

@SeiFujibayashi 问题已解决:#25,使用命令:git pull origin dev 更新一下主题就可以了,过几天会发布新版本。

我已经git pull到最新版本了,然后设置完_config以后在启动服务器时它又显示这个:

issue

@liuyib
Copy link
Owner

liuyib commented Jan 13, 2020

@SeiFujibayashi 你是执行的 git pull origin dev 吗,因为我只把修改的代码推到了 dev 分支上,还没有合并到 master 分支,所以如果你是执行的 git pullgit pull origin master 是不行的。而且我修改了代码之后 Stun 主题已经不依赖 cheerio 这个库了,你再确认一下~ 如果还不行,你可以更新一下 hexo-cli 后再尝试~ 如果还有问题,再告诉我一下,感谢🙌

@Xuu6770
Copy link
Author

Xuu6770 commented Jan 13, 2020

@SeiFujibayashi 你是执行的 git pull origin dev 吗,因为我只把修改的代码推到了 dev 分支上,还没有合并到 master 分支,所以如果你是执行的 git pullgit pull origin master 是不行的。而且我修改了代码之后 Stun 主题已经不依赖 cheerio 这个库了,你再确认一下~ 如果还不行,你可以更新一下 hexo-cli 后再尝试~ 如果还有问题,再告诉我一下,感谢🙌

噢不好意思,是我搞错了,现在好了,感谢帮助!
还有就是我将代码高亮主题改成dark或者ocean以后其样式并没有改变,即高亮主题仍然是light,我清除了浏览器缓存重新加载也没用……还请帮忙看下是什么问题
另外右上角那个夜间模式感觉很棒!

@liuyib
Copy link
Owner

liuyib commented Jan 14, 2020

@SeiFujibayashi 我试了下,切换代码高亮后,主题仍然是 light,这个是添加夜间模式功能的时候引起的一个 bug,我会尽快修复。等最近修改的功能都测试之后,会发布新版本,到时候更新到最新版就行了~ 感谢反馈!

@liuyib liuyib closed this as completed Jan 14, 2020
@liuyib liuyib added 🐞 Bug Something isn't working 🔌 3rd Party Service Third party service and removed 💬 Question Further information is requested 📌 Top Issue Topping ❗ Help Wanted Extra attention is needed labels Jan 14, 2020
@liuyib liuyib unpinned this issue Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working 🔌 3rd Party Service Third party service
Projects
None yet
Development

No branches or pull requests

2 participants