auroral-ui / hexo-theme-aurora

🏳️‍🌈 Futuristic auroral Hexo theme.
https://blog.bennyxguo.com
MIT License
1.33k stars 211 forks source link

启动hexo时,报错需要堆栈 #399

Closed LeiYihan01 closed 8 months ago

LeiYihan01 commented 8 months ago

我使用hexo s时(用cmd),报错ERROR Plugin load failed: hexo-plugin-aurora,然后说 Error: Cannot find module 'shiki' Require stack:

LeiYihan01 commented 8 months ago

附图 image

bennyxguo commented 8 months ago

重新安装一下主题包试试:

npm install hexo-plugin-aurora@latest hexo-theme-aurora@latest
LeiYihan01 commented 8 months ago

由于服务器在国内访问较慢,我使用cnpm镜像,按照方法重新安装后,还是报错。 image image

bennyxguo commented 8 months ago

cnpm 有可能有使用问题哦,推荐用 taobao 镜像。https://juejin.cn/post/6844904105572335630

安装好,切换好之后,删除 node_modules 然后重新跑:

npm install hexo-plugin-aurora@latest hexo-theme-aurora@latest
LeiYihan01 commented 8 months ago

感谢,成功了!