Hexo genarate 报错 找不到原因

发布于 2022-09-11 20:21:05 字数 8829 浏览 23 评论 0

clipboard.png
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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

零度℉ 2022-09-18 20:21:05
将Next回滚,然后将本地的node_modules文件夹删除,同时删除package-lock.json,重新执行`npm install`生成node_modules目录后恢复。
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文