mibew live chat的gulp默认值出现PHP解析错误
大家好!我安装了mibew-ver。2.2.2(它运行良好)并希望对其进行更改(添加并构建新的“样式”)。操作系统-视窗10。因此,我还安装了用于构建源的工具:mibew live chat的gulp默认值出现PHP解析错误,php,node.js,gulp,livechat,Php,Node.js,Gulp,Livechat,大家好!我安装了mibew-ver。2.2.2(它运行良好)并希望对其进行更改(添加并构建新的“样式”)。操作系统-视窗10。因此,我还安装了用于构建源的工具: [cmd]node-v=>v8.1.3 [cmd]npm-v=>v5.0.4 [cmd]gulp-v=>CLI版本1.3.0本地版本3.9.1 [cmd]php-r“echo phpversion();”=>5.4.35 然后,我不上船,跟着火车走。 结果我得到了这个: D:\www\home\mibew\loc\src>gulp
D:\www\home\mibew\loc\src>gulp default
[16:52:05] Using gulpfile D:\www\home\mibew\loc\src\gulpfile.js
[16:52:05] Starting 'default'...
[16:52:05] Starting 'clean'...
[16:52:05] Finished 'clean' after 127 ms
[16:52:05] Starting 'js'...
[16:52:05] Starting 'chat-styles-handlebars'...
[16:52:05] Starting 'chat-styles-js'...
[16:52:05] Starting 'page-styles'...
[16:52:05] Finished 'chat-styles-js' after 276 ms
[16:52:06] Finished 'page-styles' after 801 ms
[16:52:07] Finished 'chat-styles-handlebars' after 1.41 s
[16:52:07] Starting 'chat-styles'...
[16:52:07] Finished 'chat-styles' after 51 μs
[16:52:07] Finished 'js' after 2.04 s
[16:52:07] Starting 'get-composer'...
[16:52:07] Starting 'bower-install'...
[16:52:08] 'get-composer' errored after 794 ms
[16:52:08] Error: PHP Parse error: syntax error, unexpected end of file in - on line 1472
at formatError (C:\Users\Nika\AppData\Roaming\npm\node_modules\gulp-cli\lib\versioned\^3.7.0\formatError.js:20:10)
at Gulp.<anonymous> (C:\Users\Nika\AppData\Roaming\npm\node_modules\gulp-cli\lib\versioned\^3.7.0\log\events.js:41:15)
at emitOne (events.js:120:20)
at Gulp.emit (events.js:210:7)
at Gulp.Orchestrator._emitTaskDone (D:\www\home\mibew\loc\src\node_modules\orchestrator\index.js:264:8)
at D:\www\home\mibew\loc\src\node_modules\orchestrator\index.js:275:23
at finish (D:\www\home\mibew\loc\src\node_modules\orchestrator\lib\runTask.js:21:8)
at cb (D:\www\home\mibew\loc\src\node_modules\orchestrator\lib\runTask.js:29:3)
at D:\www\home\mibew\loc\src\gulpfile.js:108:13
at ChildProcess.exithandler (child_process.js:277:5)
[16:52:08] 'default' errored after 2.96 s
[16:52:08] Error in plugin 'run-sequence(get-composer)'
Error
at finish (D:\www\home\mibew\loc\src\node_modules\run-sequence\index.js:56:13)
at Gulp.onError (D:\www\home\mibew\loc\src\node_modules\run-sequence\index.js:67:4)
at emitOne (events.js:120:20)
at Gulp.emit (events.js:210:7)
at Gulp.Orchestrator._emitTaskDone (D:\www\home\mibew\loc\src\node_modules\orchestrator\index.js:264:8)
at D:\www\home\mibew\loc\src\node_modules\orchestrator\index.js:275:23
at finish (D:\www\home\mibew\loc\src\node_modules\orchestrator\lib\runTask.js:21:8)
at cb (D:\www\home\mibew\loc\src\node_modules\orchestrator\lib\runTask.js:29:3)
at D:\www\home\mibew\loc\src\gulpfile.js:108:13
at ChildProcess.exithandler (child_process.js:277:5)
[16:52:12] Finished 'bower-install' after 5.05 s
D:\www\home\mibew\loc\src>gulpdefault
[16:52:05]使用gulpfile D:\www\home\mibew\loc\src\gulpfile.js
[16:52:05]正在启动“默认”。。。
[16:52:05]开始“清理”。。。
[16:52:05]127毫秒后完成“清洁”
[16:52:05]正在启动“js”。。。
[16:52:05]正在启动“聊天风格把手”。。。
[16:52:05]正在启动“聊天风格js”。。。
[16:52:05]正在启动“页面样式”。。。
[16:52:05]276毫秒后完成“聊天风格js”
[16:52:06]801毫秒后完成“页面样式”
[16:52:07]1.41秒后完成“聊天风格把手”
[16:52:07]正在启动“聊天风格”。。。
[16:52:07]51μs后完成“聊天风格”
[16:52:07]在2.04秒后完成“js”
[16:52:07]开始“获得作曲家”。。。
[16:52:07]正在启动“bower安装”。。。
[16:52:08]“get composer”在794毫秒后出错
[16:52:08]错误:PHP解析错误:语法错误,第1472行出现意外的文件结尾
格式错误(C:\Users\Nika\AppData\Roaming\npm\node\u modules\gulp cli\lib\versioned\^3.7.0\formatError.js:20:10)
狼吞虎咽。(C:\Users\Nika\AppData\Roaming\npm\node\u modules\gulp cli\lib\versioned\^3.7.0\log\events.js:41:15)
在emitOne(events.js:120:20)
在Gulp.emit(events.js:210:7)
位于Gulp.Orchestrator.\u emitTaskDone(D:\www\home\mibew\loc\src\node\u modules\Orchestrator\index.js:264:8)
位于D:\www\home\mibew\loc\src\node\u modules\orchestrator\index.js:275:23
完成时(D:\www\home\mibew\loc\src\node\u modules\orchestrator\lib\runTask.js:21:8)
在cb(D:\www\home\mibew\loc\src\node\u modules\orchestrator\lib\runTask.js:29:3)
在D:\www\home\mibew\loc\src\gulpfile.js:108:13
在ChildProcess.exithandler(child_process.js:277:5)
[16:52:08]“默认”在2.96秒后出错
[16:52:08]插件“运行序列(get composer)”中出错
错误
完成时(D:\www\home\mibew\loc\src\node\u modules\run sequence\index.js:56:13)
位于Gulp.onError(D:\www\home\mibew\loc\src\node\u modules\run sequence\index.js:67:4)
在emitOne(events.js:120:20)
在Gulp.emit(events.js:210:7)
位于Gulp.Orchestrator.\u emitTaskDone(D:\www\home\mibew\loc\src\node\u modules\Orchestrator\index.js:264:8)
位于D:\www\home\mibew\loc\src\node\u modules\orchestrator\index.js:275:23
完成时(D:\www\home\mibew\loc\src\node\u modules\orchestrator\lib\runTask.js:21:8)
在cb(D:\www\home\mibew\loc\src\node\u modules\orchestrator\lib\runTask.js:29:3)
在D:\www\home\mibew\loc\src\gulpfile.js:108:13
在ChildProcess.exithandler(child_process.js:277:5)
[16:52:12]5.05秒后完成“bower安装”
请告诉我,是什么导致了错误?怎么了?谢谢。在与墙搏斗了一段时间后,我分析了文件gulpfile.js,并将文件composer.phar放在同一目录中,然后从命令行再次选择“gulp default”并。。。奇迹!完成时没有出现错误,我在文件夹release.zip和.tar.gz归档文件中找到了它。请告诉我,这个compose.phar文件放在哪里。现在我想,我已经在我的系统中安装了composer,所以我转到该目录,复制composer.phar文件,并将其放在mibew/src文件夹中。