环境是 Windows7+NodeJs 12.0+hexo 3.0.0
首先我在本地写完博客,然后hexo server=>hexo generate=>hexo deploy
一切都非常Ok,符合我的预期
之后我又新建一篇文章hexo new post "xx", 就出现了下面那个fatal error(所有命令都会出现).
简直像是灵异事件, 我什么配置没改,什么都没有动
看错误描述,好像某个引用文件出错?
我到那个推荐的链接去看,没有给出解决方案
是不是把hexo降级到2.x比较好一点, 毕竟没有那么多幺蛾子?
update:
_config.yml
# Hexo Configuration
## Docs: http://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Code Happily
subtitle: For Fun
description:
author: CatHe
language: zh-CN
timezone:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url:
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
tab_replace:
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Extensions
## Plugins: http://hexo.io/plugins/
## Themes: http://hexo.io/themes/
theme: landscape
# Deployment
## Docs: http://hexo.io/docs/deployment.html
deploy:
type: git
repository: http://github.com/ming2281/ming2281.github.io.git
branch: master
抱歉昨晚后来没看你的补充~
虽然我尝试再现这个error没有得到你截图的结果,不过你试一下
url那一行写上链接,内容无所谓,http://localhost:4000也可以
如果还是不行的话我暂时想不到什么办法了,你可以尝试到github上写issue~