hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.55k stars 4.86k forks source link

I can't deploy blog #4383

Closed ghost closed 4 years ago

ghost commented 4 years ago

Check List

Please check followings before submitting a new issue.

Expected behavior

zh-CN: 正常推送至Github repo en-US: Push to Github Repo

Actual behavior

zh-CN: 推送失败 en-US: Push failed

How to reproduce?

Is the problem still there under "Safe mode"?

hexo generate normalcy,but hexo deploy failed,because deployer not found: git

Environment & Settings

Node.js & npm version(node -v && npm -v)

> node -v
v14.4.0
> npm -v
6.14.5

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: 我不会编程的博客
subtitle:
description: LIFE IS FANTASTIC!
keywords:
author: EvanMeek
language: zh-CN
timezone:

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://evanmeek.github.io
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: true
relative_link: false
future: true
highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace:

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
  path: ''
  per_page: 10
  order_by: -updated

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

symbols_count_time:
  separated_meta: true
  item_text_post: true
  item_text_total: true
  awl: 2
  wpm: 275

# LIVE2D
live2d:
  enable: true
  # enable: false
  scriptFrom: local # 默认
  pluginRootPath: live2dw/ # 插件在站点上的根目录(相对路径)
  pluginJsPath: lib/ # 脚本文件相对与插件根目录路径
  pluginModelPath: assets/ # 模型文件相对与插件根目录路径
  # scriptFrom: jsdelivr # jsdelivr CDN
  # scriptFrom: unpkg # unpkg CDN
  # scriptFrom: https://cdn.jsdelivr.net/npm/live2d-widget@3.x/lib/L2Dwidget.min.js # 你的自定义 url
  tagMode: false # 标签模式, 是否仅替换 live2d tag标签而非插入到所有页面中
  debug: false # 调试, 是否在控制台输出日志
  model:
    use: live2d-widget-model-wanko # npm-module package name
    # use: wanko # 博客根目录/live2d_models/ 下的目录名
    # use: ./wives/wanko # 相对于博客根目录的路径
    # use: https://cdn.jsdelivr.net/npm/live2d-widget-model-wanko@1.0.5/assets/wanko.model.json # 你的自定义 url
  display:
    position: right
    width: 150
    height: 300
  mobile:
    show: true # 手机中是否展示
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Extensios
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
  type: git
  repository: git@github.com:EvanMeek/evanmeek.github.io
  branch: master

Hexo and Plugin version(npm ls --depth 0)

hexo-site@0.0.0 /home/evanmeek/Documents/blog/evanmeek.github.io
├── eslint@6.3.0
├── gitment@0.0.3
├── UNMET DEPENDENCY gulp@^4.0.2
├── gulp-htmlclean@2.7.22
├── UNMET DEPENDENCY gulp-htmlmin@^5.0.1
├── UNMET DEPENDENCY gulp-imagemin@^6.2.0
├── UNMET DEPENDENCY gulp-minify-css@^1.2.4
├── UNMET DEPENDENCY gulp-uglify@^3.0.2
├── hexo@3.9.0
├── hexo-asset-image@0.0.3
├── hexo-deployer-git@1.0.0
├── hexo-deployer-heroku@0.1.2
├── hexo-deployer-openshift@0.1.2
├── hexo-deployer-rsync@0.1.3
├── hexo-generator-archive@0.1.5
├── hexo-generator-category@0.1.3
├── hexo-generator-feed@1.2.2
├── hexo-generator-index@0.2.1
├── hexo-generator-search@2.4.0
├── hexo-generator-searchdb@1.0.8
├── hexo-generator-sitemap@1.2.0
├── hexo-generator-tag@0.2.0
├── UNMET DEPENDENCY hexo-helper-live2d@^3.1.1
├── hexo-helper-qrcode@1.0.2
├── hexo-renderer-ejs@0.3.1
├── hexo-renderer-marked@0.2.11
├── hexo-renderer-stylus@0.2.3
├── hexo-server@0.3.3
└── UNMET DEPENDENCY hexo-wordcount@^6.0.1

npm ERR! missing: gulp@^4.0.2, required by hexo-site@0.0.0
npm ERR! missing: gulp-htmlmin@^5.0.1, required by hexo-site@0.0.0
npm ERR! missing: gulp-imagemin@^6.2.0, required by hexo-site@0.0.0
npm ERR! missing: gulp-minify-css@^1.2.4, required by hexo-site@0.0.0
npm ERR! missing: gulp-uglify@^3.0.2, required by hexo-site@0.0.0
npm ERR! missing: hexo-helper-live2d@^3.1.1, required by hexo-site@0.0.0
npm ERR! missing: hexo-wordcount@^6.0.1, required by hexo-site@0.0.0

Your package.json package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.9.0"
  },
  "dependencies": {
    "eslint": "^6.3.0",
    "gitment": "0.0.3",
    "gulp": "^4.0.2",
    "gulp-htmlclean": "^2.7.22",
    "gulp-htmlmin": "^5.0.1",
    "gulp-imagemin": "^6.2.0",
    "gulp-minify-css": "^1.2.4",
    "gulp-uglify": "^3.0.2",
    "hexo": "^3.9.0",
    "hexo-asset-image": "0.0.3",
    "hexo-deployer-git": "^1.0.0",
    "hexo-deployer-heroku": "^0.1.2",
    "hexo-deployer-openshift": "^0.1.2",
    "hexo-deployer-rsync": "^0.1.3",
    "hexo-generator-archive": "^0.1.5",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-feed": "^1.2.2",
    "hexo-generator-index": "^0.2.1",
    "hexo-generator-search": "^2.4.0",
    "hexo-generator-searchdb": "^1.0.8",
    "hexo-generator-sitemap": "^1.2.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-helper-live2d": "^3.1.1",
    "hexo-helper-qrcode": "^1.0.2",
    "hexo-renderer-ejs": "^0.3.1",
    "hexo-renderer-marked": "^0.2.11",
    "hexo-renderer-stylus": "^0.2.3",
    "hexo-server": "^0.3.3",
    "hexo-wordcount": "^6.0.1"
  }
}

Others

dumindu commented 4 years ago

@EvanMeek As I know hexo 4.2.1 is the version compatible with node v14

ghost commented 4 years ago

@EvanMeek As I know hexo 4.2.1 is the version compatible with node v14

Thank for your comment,I use the node-lts package now, this version is 1.12.x, it work.