基于gulp的网站部署出错

问题描述 投票:0回答:1

我正在尝试部署一个基于 gulp 的网站,但我每次执行 gulp 部署时都会收到此错误我遇到这个问题有人可以帮忙吗?

$ gulp deploy
[00:19:01] Using gulpfile E:\newfolder\gulpfile.js
[00:19:01] Starting 'deploy'...
[00:19:04] 'deploy' errored after 2.48 s
[00:19:04] TypeError: Cannot read property '0' of null
    at Function.module.exports.Commit.actor (E:\newfolder\node_modules\gift\lib\commit.js:145:56)
    at Function.module.exports.Commit.parse_commits (E:\newfolder\node_modules\gift\lib\commit.js:113:21)   
    at E:\newfolder\node_modules\gift\lib\commit.js:55:39
    at ChildProcess.exithandler (child_process.js:374:7)
    at ChildProcess.emit (events.js:400:28)
    at ChildProcess.emit (domain.js:537:15)
    at maybeClose (internal/child_process.js:1058:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
    at Process.callbackTrampoline (internal/async_hooks.js:130:17)

这是我的 gulpfile.js

/*
* Gulpfile
* @version: 1.0.0 (Fri, 08 May 2020)
* @author: HtmlStream
* @license: Htmlstream (https://htmlstream.com/licenses)
* Copyright 2020 Htmlstream
*/

require('./gulpfiles/watch')
require('./gulpfiles/dist')
require('./gulpfiles/build')
require('./gulpfiles/preview')
require('./gulpfiles/svg-compiler')
require('./gulpfiles/deploy')
require('./gulpfiles/ga')
node.js gulp gulp-watch gulp-sass gulp-filter
1个回答
0
投票

我也有这个错误。我自己创建了 gh-pages 分支,并将 dist 文件夹的内容推送到该分支。不幸的是,在我的情况下,只有手动,这是唯一有效的方法。

© www.soinside.com 2019 - 2024. All rights reserved.