-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
I just download install Hexo version 3.0.0-rc.2
Now I've setup the deploy section in the _config.yml:
# Deployment
## Docs: http://hexo.io/docs/deployment.html
deploy:
type: github
repo: https://github.com/scaljeri/website.git
branch: gh-pages
message: hexo deploy
However, when I run the deploy command I get the following:
% hexo deploy
ERROR Deployer not found: github
According to the documentation it should work this way. Any suggestions ?
Activity
Xuanwo commentedon Feb 8, 2015
#1013
scaljeri commentedon Feb 8, 2015
#1013 seems to be about an upgrade from 2.x to 3.0. I simply downloaded 3.0.0-rc.2 and created a new project.
So, should the github deployer be downloaded manually ?
Xuanwo commentedon Feb 8, 2015
In version 3, your should use
git
instead ofgithub
.And your need to run
So that you can use hexo-deployer-git as usual.
scaljeri commentedon Feb 8, 2015
Thanks for helping. I noticed that
hexo
doesn't have adeploy
option anymore. Also on thehexo-deployer-git
repo itself is not much information on how to run the command now. Any help would be appreciatedXuanwo commentedon Feb 8, 2015
you can modify your
_config.yml
scaljeri commentedon Feb 8, 2015
I did as you said:
But now what. If I look at the options of
hexo
I don't see the
deploy
options ?Xuanwo commentedon Feb 8, 2015
your work is done.
all the thing about depoly is set in
_config.yml
scaljeri commentedon Feb 8, 2015
Ok, thnx. I'll wait until hexo CLI supports it again!
Xuanwo commentedon Feb 8, 2015
Why you need this option?
scaljeri commentedon Feb 8, 2015
So it does the deployment. It should push it to my github repo. Before I did it like this
Xuanwo commentedon Feb 9, 2015
OK, I get your problom finally.
your problem is the floder is not a hexo floder.
pleasw read https://github.com/hexojs/hexo/wiki/Migrating-from-2.x-to-3.0#modify-packagejsonI'm sorry for my mistake, it is for rc.3.
in rc.2 , the quickist way is to create a new floder, and run
hexo init
, and copy your source file in it.scaljeri commentedon Feb 9, 2015
I've updated hexo to 3.0.0-rc.3 and followed these instructions: https://github.com/hexojs/hexo/wiki/Migrating-from-2.x-to-3.0#modify-packagejson
Now I have the following issue
Xuanwo commentedon Feb 9, 2015
you need to run all of them
scaljeri commentedon Feb 9, 2015
I did all of these (and I did it again :) Anyway, I get the same error message again. I tried to create a new project
How do you add themes to hexo itself, because so far i only added themes to the project itself ?
UPDATE: I get the same error when I install hexo with
npm install hexo
Xuanwo commentedon Feb 9, 2015
you should run
instead of
And try
hexo init
instead ofhexo init blog
17 remaining items
iqiancheng commentedon Apr 7, 2015
The solution:
1: type change git
2: command npm install hexo-deployer-git --save
3: hexo d
That's all right!
Beenking commentedon May 11, 2015
@iqiangcheng
thanks
lisiming789 commentedon May 23, 2015
按照一下操作 确实解决了:
执行完以后,如果报错 Error: Deployer not found : github,则执行如下命令:
npm install hexo-deployer-git --save
同时修改 _config.yml :
deploy:
type: git //改成github
然后再执行:
hexo generate
hexo deploy
iamwent commentedon Jun 4, 2015
I have installed the hexo-deployer-git ,but the error still exist.
ERROR Deployer not found: git
Xuanwo commentedon Jun 5, 2015
Are you sure your command is
npm install hexo-deployer-git --save
instead ofnpm install hexo-deployer-git
?And are you sure you install this in your hexo dictory?
iamwent commentedon Jun 5, 2015
Success!
I installed the hexo-deployer-git through the command ,but not the hexo dictory(hexo init dir).
Thank you very much!@Xuanwo
xumeng commentedon Jul 21, 2015
@illusionworld thx
zgpeace commentedon Oct 24, 2015
The solution:
1: type change git
2: command npm install hexo-deployer-git --save
3: hexo d
it works
Zhangzijing commentedon Jan 10, 2016
报错
$ npm install hexo-deployer-git --save
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN install Couldn't install optional dependency: Unsupported
xinpan2 commentedon Mar 6, 2016
well,when i was generating the sitemap ,i update the hexo/_config.yml by adding
plugins:- hexo-generator-sitemap
in the last of the file and the error araising later.As soon as i deleted what i have added the error away.
xiaozefeng commentedon Jun 12, 2016
you should change
type: github to type: git with _config.yml
ERICWUYU commentedon Aug 17, 2016
The solution:
1: type change git
2: command npm install hexo-deployer-git --save
3: hexo d
That's all right!
shizhonghai commentedon Dec 8, 2016
这个插件得安装
$ npm install hexo-deployer-git --save
然后操作如下
_config.yml 配置如下:
deploy:
type: git
repo: git@github.com:youname/yourname.github.io.git
branch: master
message:
我就是这样配置才解决这个问题的(ERROR Deployer not found: github),这是官网文档的部署配置