tufu9441 / maupassant-hexo

A simple Hexo theme forked from icylogic.
https://www.haomwei.com
MIT License
2.63k stars 669 forks source link

安装失败-No layout #427

Closed anson2416 closed 5 years ago

anson2416 commented 5 years ago

使用淘宝源安装好依赖之后,打开页面是空白的。查看log可以看到index.html没有生成。请问怎样解决?

安装步骤:

http://huluo666.cn/2016/02/02/hexo%E4%B8%BB%E9%A2%98%E5%AE%89%E8%A3%85/

$ sudo hexo g
INFO  Start processing
INFO  Files loaded in 122 ms
WARN  No layout: 2018/12/02/hello-world/index.html
WARN  No layout: archives/index.html
WARN  No layout: archives/2018/index.html
WARN  No layout: archives/2018/12/index.html
WARN  No layout: index.html
INFO  Generated: index.html
INFO  Generated: archives/index.html
INFO  Generated: archives/2018/index.html
INFO  Generated: archives/2018/12/index.html
INFO  Generated: 2018/12/02/hello-world/index.html
INFO  5 files generated in 7.56 ms
tufu9441 commented 5 years ago

按 #194 中提到的解决了吗?

anson2416 commented 5 years ago

我之前也有看过这个相关链接。

最后我是这样解决的:根据issue的链接介绍

  1. 先安装淘宝的npm源
  2. 安装必要的插件。因为我对npm不熟悉,第一次折腾的时候没有看清楚返回结果。 如果安装成功,会提示安装了多少个package。

这样就把问题解决了。

回想起来,我以为是墙的问题,现在想想也不对,因为当时是能够链接的,也正是这些未知的因素导致了render 安装不成功而出现空页面。

谢谢你的回复。