查看: 4909|回复: 7

源码编译执行gulp出错,请教~~ 急

GZZ

升级   32%

2

主题

4

回帖

16

积分

新手上路

Rank: 1

积分
16
发表于 2020-4-8 10:18:05 | 显示全部楼层 |阅读模式

执行gulp的时候提示 Task never defined: default,是不是gulpfile.js文件里没有定义default  但是这个源码都是最新的,从码云上刚下载的。请问要怎么处理这个问题,谢谢
回复

使用道具 举报

GZZ

升级   32%

2

主题

4

回帖

16

积分

新手上路

Rank: 1

积分
16
发表于 2020-4-8 13:42:28 | 显示全部楼层
好的,我再试一下  谢谢~
回复

使用道具 举报

升级   28%

10

主题

16

回帖

92

积分

注册会员

Rank: 2

积分
92
发表于 2020-4-21 11:46:29 | 显示全部楼层
我也是这问题。。。
回复

使用道具 举报

GZZ

升级   32%

2

主题

4

回帖

16

积分

新手上路

Rank: 1

积分
16
发表于 2020-4-8 11:26:10 | 显示全部楼层
您好,根据您的步骤 执行npm run build:win的时候出现以上报错是什么问题,要怎么处理 谢谢~
回复

使用道具 举报

升级   100%

138

主题

1万

回帖

3万

积分

超级版主

Rank: 8Rank: 8

积分
37187
发表于 2020-4-8 11:56:28 | 显示全部楼层
您好:
[11:23:07] Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:205:27)
这个可能是网络问题,您再尝试看看
回复

使用道具 举报

GZZ

升级   32%

2

主题

4

回帖

16

积分

新手上路

Rank: 1

积分
16
发表于 2020-4-8 11:28:09 | 显示全部楼层
F:\O2OA\gzz\O2OA\o2server>npm run build:win
> o2oa@4.0.3763 build:win F:\O2OA\gzz\O2OA
> npm run clear && npm run preperation:win && npm run build_parallel && npm run deploy:win && npm run typeInfor

> o2oa@4.0.3763 clear F:\O2OA\gzz\O2OA
> gulp clear_build
[11:22:43] Using gulpfile F:\O2OA\gzz\O2OA\gulpfile.js
[11:22:43] Starting 'clear_build'...
---------------------------------------------------------------------
  . clear old build ...
---------------------------------------------------------------------
[11:22:43] Finished 'clear_build' after 5.58 ms
> o2oa@4.0.3763 preperation:win F:\O2OA\gzz\O2OA
> gulp preperation --e windows
[11:22:48] Using gulpfile F:\O2OA\gzz\O2OA\gulpfile.js
[11:22:48] Starting 'preperation'...
[11:22:48] Starting 'download_commons_and_jvm'...
[11:22:48] begin download commons and jvm
---------------------------------------------------------------------
  . Start to download the dependencies needed for compilation ...
---------------------------------------------------------------------
[11:23:07] 'download_commons_and_jvm' errored after 19 s
[11:23:07] Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:205:27)
[11:23:07] 'preperation' errored after 19 s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! o2oa@4.0.3763 preperation:win: `gulp preperation --e windows`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the o2oa@4.0.3763 preperation:win script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\30344\AppData\Roaming\npm-cache\_logs\2020-04-08T03_23_07_440Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! o2oa@4.0.3763 build:win: `npm run clear && npm run preperation:win && npm run build_parallel && npm run deploy:win && npm run typeInfor`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the o2oa@4.0.3763 build:win script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\30344\AppData\Roaming\npm-cache\_logs\2020-04-08T03_23_07_544Z-debug.log


文本内容
回复

使用道具 举报

升级   100%

138

主题

1万

回帖

3万

积分

超级版主

Rank: 8Rank: 8

积分
37187
发表于 2020-4-22 10:28:31 | 显示全部楼层
回复

使用道具 举报

升级   100%

138

主题

1万

回帖

3万

积分

超级版主

Rank: 8Rank: 8

积分
37187
发表于 2020-4-8 11:12:56 | 显示全部楼层
您好:现在打包方式修改了,这几天会将文档更新。
先简单说明一下:
1.npm install
2.npm run build:win    (windows机器)
3.target\o2server 目录下直接启动 start_windows.bat
即可。
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread