Hexo一个报错,报错如图
TypeError [ERR_INVALID_URL]: Invalid URL: http://
问题已解决
在配置文件_config.yml
中我把url
值设为了''
空字符串所以报错了,如下。
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: ''
root: /
只要改回默认就好了:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com/
root: /
我使用的Hexo版本如下:
$ hexo version
hexo: 4.2.0
hexo-cli: 3.1.0
os: Windows_NT 10.0.14393 win32 x64
node: 13.1.0
v8: 7.8.279.17-node.19
uv: 1.33.1
zlib: 1.2.11
brotli: 1.0.7
ares: 1.15.0
modules: 79
nghttp2: 1.39.2
napi: 5
llhttp: 1.1.4
openssl: 1.1.1d
cldr: 35.1
icu: 64.2
tz: 2019a
unicode: 12.1
网友评论