dragonhell 发表于 2020-4-22 09:16:19

'download_commons_and_jvm' errored after 是什么错误呀

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
Using gulpfile ~\O2OA\gulpfile.js
Starting 'clear_build'...
---------------------------------------------------------------------
. clear old build ...
---------------------------------------------------------------------
Finished 'clear_build' after 3.47 ms
> o2oa@4.0.3763 preperation:win C:\Users\AndySky\O2OA
> gulp preperation --e windows
Using gulpfile ~\O2OA\gulpfile.js
Starting 'preperation'...
Starting 'download_commons_and_jvm'...
begin download commons and jvm
---------------------------------------------------------------------
. Start to download the dependencies needed for compilation ...
---------------------------------------------------------------------
'download_commons_and_jvm' errored after 190 ms
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 (_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)
'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

论坛管理员 发表于 2020-4-22 09:39:51

您好:您估计是网络的问题导致的,
您将npm run build:win分成多步骤编译看看(前提下载jvm 和commons)
npm run clearnpm run build_parallel npm run deploy:win npm run typeInfor

dragonhell 发表于 2020-4-22 10:29:15

搞定,非常感谢!
页: [1]
查看完整版本: 'download_commons_and_jvm' errored after 是什么错误呀