发现错误
- 下载更换ICARUS主题后,重新执行
hexo serve
命令,发现报错如下1
2ERROR Package cheerio is not installed.
ERROR Please install the missing dependencies from the root directory of your Hexo site.
解决问题
原因是缺少
cheerio
依赖,进入blog-hexo
目录,执行npm i cheerio -S
命令进行安装即可,-S
指安装并将其保存到当前项目的配置中,下次就会统一安装了。重新执行
hexo serve
命令,发现如下信息1
2
3
4INFO Checking dependencies
INFO Validating the configuration file
WARN themes/icarus/\_config.yml is not found. We are creating one for you...
INFO themes/icarus/\_config.yml is created. Please restart Hexo to apply changes.提示缺少
themes/icarus/_config.yml
文件,已经帮助我们生成,再次运行即可正常启动。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 BIA!
评论