hexo: hexo server not working
hi
i have migrated from a different server installed hexo-cli globally
used npm install on the directory but when i try to use hexo server it seems like hexo-cli doesnt know what i mean
bash-4.1$ hexo server
Usage: hexo <command>
Commands:
help Get help on Hexo.
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
--safe Disable all plugins and scripts
--silent Hide output on console
For more help, you can use ‘hexo help [command]’ for the detailed information or you can check the docs: http://hexo.io/docs/
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 4
- Comments: 16 (4 by maintainers)
npm install hexo-server --saveIn hexo _config.yml ,
hexo-servermust be included if uncomment the parameterplugins. Hexo server is considered as a plugin@philippkeller +1 I think it’s not simple path problem, Since I ran the binary file directly from the project
node_modulesand got the same consequence.Finally I find it out that it’s the extra plugin setting in
_config.ymlcausing thehexo serverto ignore the my project. The server command runs correctly as long as I delete that sentence in_config.yml.I really think this confusing problem worth fixing, since the bug runs without any error message provided.
@abusedmedia @xiaohk @philippkeller
Here is the bullet.
Step 1, make sure
package.jsonhas the following:Step 2, add
hexo-serverinto pluginsThis is the way you create the folder(empty or not) yourself without
hexo-clilooks like it’s the plugins line
I have the same problem. I did everything in https://github.com/hexojs/hexo/wiki/Migrating-from-2.x-to-3.0 and I even did a complete uninstall:
but when I run
hexo serverI see the same output as @RackerJackEdit: I needed to start afresh with
hexo initand then copied all config and themes over and then it worked…