Usage: hexo <command> Commands: help Get help on a command. init Create a new Hexo folder. version Display version information. Global Options: --config Specify config file instead of using _config.yml --cwd Specify the CWD --d
1.hexo init C:/hexo
2.cd C:/hexo
3.npm install
然后在执行hexo server命令,即可成功启动服务
hexo server
- 1

然后打开浏览器输入localhost:4000
就可以看到下面的界面了
主要是安装运行的目录不对!
本文介绍了如何在Windows环境下初始化Hexo博客,通过`hexo init`、`cd`和`npm install`步骤设置项目,然后使用`hexo server`启动服务。关键在于确保正确的工作目录。最后,在浏览器中输入`localhost:4000`,即可查看到博客界面。

243

被折叠的 条评论
为什么被折叠?



