CNode

哪位大神救救我,安装hexo,出现下面错误

问答
AAndrewChenXiang发布于11 年前最后回复11 年前4 回复4927 浏览0 收藏

fsevents@0.3.0 install /Users/chenxiang/Blog/node_modules/hexo/node_modules/nunjucks/node_modules/chokidar/node_modules/fsevents node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead. CXX(target) Release/obj.target/fse/fsevents.o In file included from ../fsevents.cc:86: ../src/constants.cc:10:66: warning: template argument uses unnamed type [-Wunnamed-type-template-args] object->Set(NanNewv8::String("kFSEventStreamEventFlagNone"), NanNew<... ^~~~~~ /System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:309:1: note: unnamed type used in template argument was declared here enum { ^ 1 warning generated. SOLINK_MODULE(target) Release/fse.node SOLINK_MODULE(target) Release/fse.node: Finished hexo-renderer-ejs@0.1.0 node_modules/hexo-renderer-ejs ├── ejs@1.0.0 └── lodash@2.4.1

在hexo init 后,执行 npm install,然后出现以下错误。 然后执行hexo deploy 没有任何输出信息,也没有创建.delopy文件夹

查看回复

回复 (4)

R
ruanyl#1·11 年前

1.看看有没有生成public文件夹 2.看看_config.yml 有没有配置deploy

A
AndrewChenXiang#2·11 年前
引用 ruanyl1.看看有没有生成public文件夹 2.看看 config.yml 有没有配置deploy

@ruanyl 生成了public文件夹。 配置了_config.yml文件,但是部署不到git上。部署信息(_config.yml)如下: deploy: type:git repo:git@github.com:AndrewChenXiang/andrewchenxiang.github.io.git branch:master

我感觉是环境有问题。

R
ruanyl#3·11 年前

@AndrewChenXiang 看看有没有.deploy_git文件夹,hexo deploy 本质上是把public文件夹的内容copy到.deploy_git, 然后在.deploy_git init一个git repo,最后push到github(--force)。 我看你的git url 是private的,你还得看看你的git有没有配置正确。

我的配置

deploy:
  type: git
  repo: https://github.com/ruanyl/ruanyl.github.io.git
  branch: master
参与回复
登录后即可参与回复。登录