关于hexo搭建网站的问题:
hexo new "My New Post"
hexo g # 生成页面
hexo d
发布文章成功
hexo new "优麒麟2004下 Hexo GitHub 搭建个人博客""优麒麟2004下 Hexo GitHub 搭建个人博客"
hexo g
报错:
FATAL { err:
{ TypeError [ERR_INVALID_URL]: Invalid URL: http://localhost:4000,出现
Please report this to https://github.com/markedjs/marked.
at onParseError (internal/url.js:241:17)
at new URL (internal/url.js:319:5)
at encodeURL (/home/kylin/work/hepuyao/hexo2020/node_modules/hexo-util/lib/encode_url.js:8:20)
at Renderer.link (/home/kylin/work/hepuyao/hexo2020/node_modules/hexo-renderer-marked/lib/renderer.js:51:27)
at Parser.parseInline (/home/kylin/work/hepuyao/hexo2020/node_modules/marked/src/Parser.js:211:27)
at Parser.parse (/home/kylin/work/hepuyao/hexo2020/node_modules/marked/src/Parser.js:162:47)
at Parser.parse (/home/kylin/work/hepuyao/hexo2020/node_modules/marked/src/Parser.js:113:23)
at Function.parse (/home/kylin/work/hepuyao/hexo2020/node_modules/marked/src/Parser.js:27:19)
at marked (/home/kylin/work/hepuyao/hexo2020/node_modules/marked/src/marked.js:110:19)
at Hexo.module.exports (/home/kylin/work/hepuyao/hexo2020/node_modules/hexo-renderer-marked/lib/renderer.js:119:10)
at Hexo.tryCatcher (/home/kylin/work/hepuyao/hexo2020/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/home/kylin/work/hepuyao/hexo2020/node_modules/bluebird/js/release/method.js:15:34)
at Promise.then.text (/home/kylin/work/hepuyao/hexo2020/node_modules/hexo/lib/hexo/render.js:75:22)
at tryCatcher (/home/kylin/work/hepuyao/hexo2020/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/kylin/work/hepuyao/hexo2020/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/kylin/work/hepuyao/hexo2020/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromiseCtx (/home/kylin/work/hepuyao/hexo2020/node_modules/bluebird/js/release/promise.js:641:10)
at _drainQueueStep (/home/kylin/work/hepuyao/hexo2020/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/home/kylin/work/hepuyao/hexo2020/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/kylin/work/hepuyao/hexo2020/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/kylin/work/hepuyao/hexo2020/node_modules/bluebird/js/release/async.js:15:14)
at runCallback (timers.js:705:18) input: 'http://localhost:4000,出现' } } 'Something\'s wrong. Maybe you can find the solution here: %s' '\u001b[4mhttps://hexo.io/docs/troubleshooting.html\u001b[24m'
暂无评论