Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/429.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 吞咽gh页面不工作_Javascript_Github_Github Pages - Fatal编程技术网

Javascript 吞咽gh页面不工作

Javascript 吞咽gh页面不工作,javascript,github,github-pages,Javascript,Github,Github Pages,除了今天,以前一切都很顺利。。不是。。不确定原因,以下是错误: /Users/harpreetsingh/Downloads/folio-cedrik/node_modules/gift/lib/commit.js:145 ref1 = /^.+? (.*) (\d+) .*$/.exec(line), m = ref1[0], actor = ref1[1], epoch = ref1[2];

除了今天,以前一切都很顺利。。不是。。不确定原因,以下是错误:

/Users/harpreetsingh/Downloads/folio-cedrik/node_modules/gift/lib/commit.js:145
      ref1 = /^.+? (.*) (\d+) .*$/.exec(line), m = ref1[0], actor = ref1[1], epoch = ref1[2];
                                                       ^

TypeError: Cannot read property '0' of null
    at Function.module.exports.Commit.actor (/Users/harpreetsingh/Downloads/folio-cedrik/node_modules/gift/lib/commit.js:145:56)
    at Function.module.exports.Commit.parse_commits (/Users/harpreetsingh/Downloads/folio-cedrik/node_modules/gift/lib/commit.js:111:21)
    at /Users/harpreetsingh/Downloads/folio-cedrik/node_modules/gift/lib/commit.js:71:39
    at ChildProcess.exithandler (child_process.js:189:7)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:891:16)
    at Socket.<anonymous> (internal/child_process.js:342:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
/Users/harpreethingh/Downloads/folio cedrik/node_modules/gift/lib/commit.js:145
参考1=/^.+?(.*)(\d+).*$/.exec(行),m=ref1[0],actor=ref1[1],epoch=ref1[2];
^
TypeError:无法读取null的属性“0”
位于Function.module.exports.Commit.actor(/Users/harpreetinggh/Downloads/folio-cedrik/node_-modules/gift/lib/Commit.js:145:56)
在Function.module.exports.Commit.parse_提交(/Users/harpreethingh/Downloads/folio cedrik/node_modules/gift/lib/Commit.js:111:21)
在/Users/harpreethingh/Downloads/folio cedrik/node_modules/gift/lib/commit.js:71:39
在ChildProcess.exithandler(child_process.js:189:7)
两点钟(events.js:106:13)
在ChildProcess.emit(events.js:191:7)
在maybeClose(内部/子进程js:891:16)
在插座上。(内部/子进程js:342:11)
在emitOne(events.js:96:13)
在Socket.emit(events.js:188:7)
如何解决这个问题?不知道这意味着什么


再次感谢您。

对于仍有此问题的用户,如果他们碰巧也在使用Thread,我在
package.json中的“resolutions”中添加了一个字段,以确保在运行
Thread install
时,Gift的正确版本获胜:

在我的
package.json
文件中,我添加了:

{
  ...other package.json stuff...,
  "resolutions": {
    "gift": "^0.10.2"
  }
}

这为我解决了问题。

是什么导致发出此错误?ref1是空对象是的,但它是由3天前更新的引发的。我闻到了上游回归的味道。@Harp,发布你的
package.json
,请告诉我们你是怎么引起这个错误的。您是否运行命令
gulp gh pages
?如果是这样的话,更多的上下文将是有帮助的,因为
gulp
后面的内容只是您的gulp任务的名称,并且不是通用的,所以可能也会发布您的
gulpfule.js
。在我的例子中,这个问题发生在repo中有多个协作者之后