Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"hexo server" command not found after using custom plugin #4202

Closed
ssoor opened this issue Mar 25, 2020 · 4 comments
Closed

"hexo server" command not found after using custom plugin #4202

ssoor opened this issue Mar 25, 2020 · 4 comments

Comments

@ssoor
Copy link

ssoor commented Mar 25, 2020

Hexo-server is now a plugin and enabled by default, but the hexo-server plugin will fail when the user is configured with a custom plugin.

The solution is to add hexo-server to the list of plugins.

# Extensions
## Plugins: https://hexo.io/plugins/
plugins:
-hexo-server
-hexo-custom-plugin ...

But this situation may not be friendly to novices. Suggestions are given in the documentation.

@jiangtj
Copy link
Member

jiangtj commented Mar 25, 2020

the player

Which player?

@ssoor
Copy link
Author

ssoor commented Mar 25, 2020

the player

Which player?

Sorry, here should be the user

@stevenjoezhang
Copy link
Member

stevenjoezhang commented Apr 26, 2020

You do not need to specify plugins:, Hexo will automatically load all the Hexo plugins in package.json.
plugins: option is not designed for hexo-custom-plugin like this

#1670
f6407dc

@stevenjoezhang
Copy link
Member

Here is a discussion about it hexojs/site#262

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants