我用hexo server命令在我的PC上启动了一个本地服务器,但我没有得到我的网站地址。localhost:4000根本不起作用。相反,我得到了一些奇怪而无用的信息:
C:\Users\user\Documents\Hexo>hexo server
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
--debug Display all verbose messages in the terminal
--draft Display draft posts
--safe Disable all plugins and scripts
--silent Hide output on console然后,我再次尝试"npm install hexo-server --save“和"hexo server”,但都是徒劳的。如何找到本地主机地址?
发布于 2021-10-27 06:25:10
你应该首先在当前文件夹中初始化一个hexo项目。
如果你在没有hexo项目文件的文件夹中运行hexo,它会显示这些消息。
https://stackoverflow.com/questions/69035569
复制相似问题