Hexo genarate 报错 找不到原因
F:MyWebPersonalBlog>hexo g
INFO Start processing
WARN ===============================================================
WARN ========================= ATTENTION! ==========================
WARN ===============================================================
WARN NexT repository is moving here: https://github.com/theme-next
WARN ===============================================================
WARN It's rebase to v6.0.0 and future maintenance will resume there
WARN ===============================================================
INFO Files loaded in 2.87 s
ERROR path.startsWith is not a function
TypeError: path.startsWith is not a function
at Object.urlForHelper (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\plugins\helper\url_for.js:6:31)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:125:119)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:819:130)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Theme._View.View._compiled (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:125:48)
at Theme._View.View.View.render (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:30:15)
at F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\index.js:394:29
at tryCatcher (F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\util.js:16:23)
at F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:457:10)
at resume_ (_stream_readable.js:936:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
ERROR path.startsWith is not a function
TypeError: path.startsWith is not a function
at Object.urlForHelper (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\plugins\helper\url_for.js:6:31)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:125:119)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:819:130)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Theme._View.View._compiled (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:125:48)
at Theme._View.View.View.render (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:30:15)
at F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\index.js:394:29
at tryCatcher (F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\util.js:16:23)
at F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:457:10)
at resume_ (_stream_readable.js:936:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
ERROR path.startsWith is not a function
TypeError: path.startsWith is not a function
at Object.urlForHelper (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\plugins\helper\url_for.js:6:31)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:125:119)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:320:130)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Theme._View.View._compiled (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:125:48)
at Theme._View.View.View.render (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:30:15)
at F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\index.js:394:29
at tryCatcher (F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\util.js:16:23)
at F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:457:10)
at resume_ (_stream_readable.js:936:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
ERROR path.startsWith is not a function
TypeError: path.startsWith is not a function
at Object.urlForHelper (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\plugins\helper\url_for.js:6:31)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:125:119)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:320:130)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Theme._View.View._compiled (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:125:48)
at Theme._View.View.View.render (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:30:15)
at F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\index.js:394:29
at tryCatcher (F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\util.js:16:23)
at F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:457:10)
at resume_ (_stream_readable.js:936:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
ERROR path.startsWith is not a function
TypeError: path.startsWith is not a function
at Object.urlForHelper (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\plugins\helper\url_for.js:6:31)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:125:119)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:320:130)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Theme._View.View._compiled (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:125:48)
at Theme._View.View.View.render (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:30:15)
at F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\index.js:394:29
at tryCatcher (F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\util.js:16:23)
at F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:457:10)
at resume_ (_stream_readable.js:936:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
ERROR path.startsWith is not a function
TypeError: path.startsWith is not a function
at Object.urlForHelper (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\plugins\helper\url_for.js:6:31)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:125:119)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Object.eval [as tpl] (eval at precompile (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:819:130)
at compiled (F:\MyWeb\PersonalBlog\node_modules\swig-templates\lib\swig.js:664:18)
at Theme._View.View._compiled (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:125:48)
at Theme._View.View.View.render (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\theme\view.js:30:15)
at F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\index.js:394:29
at tryCatcher (F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\util.js:16:23)
at F:\MyWeb\PersonalBlog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (F:\MyWeb\PersonalBlog\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:457:10)
at resume_ (_stream_readable.js:936:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)