Skip to content

ERROR Deployer not found: github #1040

@scaljeri

Description

@scaljeri

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

Xuanwo commented on Feb 8, 2015

@Xuanwo
Contributor
scaljeri

scaljeri commented on Feb 8, 2015

@scaljeri
Author

#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

Xuanwo commented on Feb 8, 2015

@Xuanwo
Contributor

In version 3, your should use git instead of github.
And your need to run

npm install hexo-deployer-git --save

So that you can use hexo-deployer-git as usual.

scaljeri

scaljeri commented on Feb 8, 2015

@scaljeri
Author

Thanks for helping. I noticed that hexo doesn't have a deploy option anymore. Also on the hexo-deployer-git repo itself is not much information on how to run the command now. Any help would be appreciated

Xuanwo

Xuanwo commented on Feb 8, 2015

@Xuanwo
Contributor

you can modify your _config.yml

scaljeri

scaljeri commented on Feb 8, 2015

@scaljeri
Author

I did as you said:

deploy:
  type: git
  repo: https://github.com/scaljeri/website.git
  branch: gh-pages
  message: hexo deploy

But now what. If I look at the options of hexo

% hexo --help
Usage: hexo <command>

Commands:
  help      Get help on a command.
  init      Create a new Hexo folder.
  migrate   Migrate your site from other system to Hexo.
  render    Render files with renderer plugins.
  version   Display version information.

Global Options:
  --config   Specify config file instead of using _config.yml
  --debug    Display all verbose messages in the terminal
  --draft    Display draft posts
  --safe     Disable all plugins and scripts
  --silent   Hide output on console

I don't see the deploy options ?

Xuanwo

Xuanwo commented on Feb 8, 2015

@Xuanwo
Contributor

your work is done.
all the thing about depoly is set in _config.yml

scaljeri

scaljeri commented on Feb 8, 2015

@scaljeri
Author

Ok, thnx. I'll wait until hexo CLI supports it again!

Xuanwo

Xuanwo commented on Feb 8, 2015

@Xuanwo
Contributor

Why you need this option?

scaljeri

scaljeri commented on Feb 8, 2015

@scaljeri
Author

So it does the deployment. It should push it to my github repo. Before I did it like this

hexo deploy -m "Commit message"
Xuanwo

Xuanwo commented on Feb 9, 2015

@Xuanwo
Contributor

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-packagejson
I'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

scaljeri commented on Feb 9, 2015

@scaljeri
Author

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

% hexo server
[error] TypeError: Cannot read property 'config' of undefined
TypeError: Cannot read property 'config' of undefined
    at module.exports (/Users/me/dev/website/node_modules/hexo-server/lib/server.js:13:20)
....
Xuanwo

Xuanwo commented on Feb 9, 2015

@Xuanwo
Contributor

you need to run all of them

npm install hexo-generator-index --save
npm install hexo-generator-archive --save
npm install hexo-generator-category --save
npm install hexo-generator-tag --save
npm install hexo-server --save
npm install hexo-deployer-git --save
npm install hexo-renderer-marked@0.2 --save
npm install hexo-renderer-stylus@0.2 --save
npm install hexo-generator-feed@1 --save
npm install hexo-generator-sitemap@1 --save
scaljeri

scaljeri commented on Feb 9, 2015

@scaljeri
Author

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

$> hexo init blog
[error] Error: Theme phase does not exist.
Error: Theme phase does not exist.
....

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

Xuanwo commented on Feb 9, 2015

@Xuanwo
Contributor

you should run

npm install hexo -g

instead of

npm install hexo

And try hexo init instead of hexo init blog

17 remaining items

iqiancheng

iqiancheng commented on Apr 7, 2015

@iqiancheng

The solution:
1: type change git
2: command npm install hexo-deployer-git --save
3: hexo d

That's all right!

Beenking

Beenking commented on May 11, 2015

@Beenking

@iqiangcheng thanks

lisiming789

lisiming789 commented on May 23, 2015

@lisiming789

按照一下操作 确实解决了:
执行完以后,如果报错 Error: Deployer not found : github,则执行如下命令:

npm install hexo-deployer-git --save

同时修改 _config.yml :

deploy:
type: git //改成github
然后再执行:

hexo generate

hexo deploy

iamwent

iamwent commented on Jun 4, 2015

@iamwent

I have installed the hexo-deployer-git ,but the error still exist.
ERROR Deployer not found: git

Xuanwo

Xuanwo commented on Jun 5, 2015

@Xuanwo
Contributor

Are you sure your command is npm install hexo-deployer-git --save instead of npm install hexo-deployer-git?
And are you sure you install this in your hexo dictory?

iamwent

iamwent commented on Jun 5, 2015

@iamwent

Success!
I installed the hexo-deployer-git through the command ,but not the hexo dictory(hexo init dir).
Thank you very much!@Xuanwo

xumeng

xumeng commented on Jul 21, 2015

@xumeng
zgpeace

zgpeace commented on Oct 24, 2015

@zgpeace

The solution:
1: type change git
2: command npm install hexo-deployer-git --save
3: hexo d

it works

Zhangzijing

Zhangzijing commented on Jan 10, 2016

@Zhangzijing

报错
$ npm install hexo-deployer-git --save
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN install Couldn't install optional dependency: Unsupported

ghost
xinpan2

xinpan2 commented on Mar 6, 2016

@xinpan2

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

xiaozefeng commented on Jun 12, 2016

@xiaozefeng

you should change
type: github to type: git with _config.yml

ERICWUYU

ERICWUYU commented on Aug 17, 2016

@ERICWUYU

The solution:
1: type change git
2: command npm install hexo-deployer-git --save
3: hexo d

That's all right!

shizhonghai

shizhonghai commented on Dec 8, 2016

@shizhonghai

这个插件得安装
$ 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),这是官网文档的部署配置

locked and limited conversation to collaborators on Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @scaljeri@xumeng@zgpeace@iamwent@Xuanwo

        Issue actions

          ERROR Deployer not found: github · Issue #1040 · hexojs/hexo