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

Plugin load failed: hexo-word-counter #5

Closed
EveSunMaple opened this issue Jul 11, 2023 · 6 comments
Closed

Plugin load failed: hexo-word-counter #5

EveSunMaple opened this issue Jul 11, 2023 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@EveSunMaple
Copy link

作者大大您好,请问部署vercel报错
Plugin load failed: hexo-word-counter
Error: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /vercel/path0/node_modules/hexo-word-counter/index.node)
是什么原因呢。本地hexo s没有任何问题,问别人说vercel不支持这么底层的操作,这个主题不能部署在vercel上面吗。

联想截图_20230711201759.png

@2b-creator
Copy link

2b-creator commented Jul 11, 2023

作者大大您好,请问部署vercel报错 Plugin load failed: hexo-word-counter Error: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /vercel/path0/node_modules/hexo-word-counter/index.node) 是什么原因呢。本地hexo s没有任何问题,问别人说vercel不支持这么底层的操作,这个主题不能部署在vercel上面吗。

联想截图_20230711201759.png

那个,我问个问题

您是要和别人协同完成文章还是自动编译站点?,我的建议是只部署网页与GitHub同步加速网页,不要把编译工具一股脑传上去在上面hexo s

vercel可能不支持这么做,但是大概率我觉得应该没问题(虽然以前试过)

@EveSunMaple
Copy link
Author

一股脑传上去是因为用来qexo,确实不太好😥
个人刚刚测试新开了一个项目也是这种情况,只能github静态部署吗

@2b-creator
Copy link

2b-creator commented Jul 11, 2023

一股脑传上去是因为用来qexo,确实不太好😥 个人刚刚测试新开了一个项目也是这种情况,只能github静态部署吗

明白了,glibc是linux底层的API库。通常情况下,有些环境需要glibc更高的版本才支持,比如你的GLIBC_2.28。
我猜vercel不支持底层的GLIBC_2.28更新,你没办法ssh碰不到系统底层

所以本地编译静态搞搞?或者等作者来😥

@EveSunMaple
Copy link
Author

一股脑传上去是因为用来qexo,确实不太好😥 个人刚刚测试新开了一个项目也是这种情况,只能github静态部署吗

明白了,glibc是linux底层的API库。通常情况下,有些环境需要glibc更高的版本才支持,比如你的GLIBC_2.28。 我猜vercel不支持底层的GLIBC_2.28更新,你没办法ssh碰不到系统底层

所以本地编译静态搞搞?或者等作者来😥

github静态部署成功了,不过这样就不支持qexo了,头疼😥

@saicaca
Copy link
Owner

saicaca commented Jul 14, 2023

@EveSunMaple 抱歉,我目前不太了解 Vercel 部署,不知道如何解决此问题😥
如果只有 hexo-word-counter 无法导入的话可以暂时尝试移除 hexo-word-counter 的依赖并移除 article.ejs 中的字数统计 symbolsCount(post)

@saicaca saicaca added the help wanted Extra attention is needed label Jul 14, 2023
@HyperCherry
Copy link
Contributor

这似乎的确是Vercel的问题,我使用这个主题在netlify上面部署没有发生任何异常
你可以尝试把hexo-word-counter移除,并更换为hexo-symbols-count-time应该能暂时让网页能够被部署到Vercel上

npm remove hexo-word-counter
npm install hexo-symbols-count-time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants