查看: 2494|回复: 2

'download_commons_and_jvm' errored after 是什么错误呀

升级   28%

10

主题

16

回帖

92

积分

注册会员

Rank: 2

积分
92
发表于 2020-4-22 09:16:19 | 显示全部楼层 |阅读模式
C:\Users\AndySky\O2OA\o2server>npm run build:win
> o2oa@4.0.3763 build:win C:\Users\AndySky\O2OA
> npm run clear && npm run preperation:win && npm run build_parallel && npm run
deploy:win && npm run typeInfor

> o2oa@4.0.3763 clear C:\Users\AndySky\O2OA
> gulp clear_build
[08:53:29] Using gulpfile ~\O2OA\gulpfile.js
[08:53:29] Starting 'clear_build'...
---------------------------------------------------------------------
  . clear old build ...
---------------------------------------------------------------------
[08:53:29] Finished 'clear_build' after 3.47 ms
> o2oa@4.0.3763 preperation:win C:\Users\AndySky\O2OA
> gulp preperation --e windows
[08:53:32] Using gulpfile ~\O2OA\gulpfile.js
[08:53:32] Starting 'preperation'...
[08:53:32] Starting 'download_commons_and_jvm'...
[08:53:32] begin download commons and jvm
---------------------------------------------------------------------
  . Start to download the dependencies needed for compilation ...
---------------------------------------------------------------------
[08:53:32] 'download_commons_and_jvm' errored after 190 ms
[08:53:32] ReferenceError: response is not defined
    at ClientRequest.<anonymous> (C:\Users\AndySky\O2OA\gulpfile.js:131:114)
    at Object.onceWrapper (events.js:417:26)
    at ClientRequest.emit (events.js:310:20)
    at ClientRequest.EventEmitter.emit (domain.js:505:15)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:603:27
)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
    at Socket.socketOnData (_http_client.js:476:22)
    at Socket.emit (events.js:310:20)
    at Socket.EventEmitter.emit (domain.js:505:15)
    at addChunk (_stream_readable.js:286:12)
[08:53:32] 'preperation' errored after 197 ms
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 log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\AndySky\AppData\Roaming\npm-cache\_logs\2020-04-22T00_53_3
2_398Z-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 && n
pm 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 log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\AndySky\AppData\Roaming\npm-cache\_logs\2020-04-22T00_53_3
2_467Z-debug.log

NPM INSTALL: 没有报错
Your environment has been set up for using Node.js 12.16.2 (x64) and npm.
C:\Users\AndySky>cd o2oa
C:\Users\AndySky\O2OA>cd o2server
C:\Users\AndySky\O2OA\o2server>npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fs
events):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
up to date in 9.22s
7 packages are looking for funding
  run `npm fund` for details
回复

使用道具 举报

升级   100%

138

主题

1万

回帖

3万

积分

超级版主

Rank: 8Rank: 8

积分
37489
发表于 2020-4-22 09:39:51 | 显示全部楼层
您好:您估计是网络的问题导致的,
您将npm run build:win  分成多步骤编译看看(前提下载jvm 和commons)
npm run clear  npm run build_parallel npm run deploy:win npm run typeInfor
回复

使用道具 举报

升级   28%

10

主题

16

回帖

92

积分

注册会员

Rank: 2

积分
92
发表于 2020-4-22 10:29:15 | 显示全部楼层
搞定,非常感谢!
回复

使用道具 举报

发表回复

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

本版积分规则

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