Skip to content

hexo g执行时报错TypeError: Cannot read properties of undefined (reading 'plugins') #862

Discussion options

You must be logged in to vote

当我准备把blog文件备份到另外目录并删除一些无用的文件打包发你时,我再次执行了npx hexo cl && npx hexo g,这次它没有报错了。
我发现是_config.yml_20241219这个备份文件的问题,当我删除它之后,执行hexo g 就没有报错了。

当我重新将/root/blog/themes/next中的_config_yaml备份之后,报错就重新出现了

cp _config.yml _config.yml_bak

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@stevenjoezhang
Comment options

@mountainmist1
Comment options

@stevenjoezhang
Comment options

@mountainmist1
Comment options

Answer selected by stevenjoezhang
@stevenjoezhang
Comment options

@mountainmist1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants