Failed控制台输出

Started by timer
Running as SYSTEM
Building in workspace D:\jenkins\workspace\gyl-fvue
The recommended git tool is: NONE
using credential c574fb46-ee62-45e1-8dac-32ae7b6a43a8
 > D:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > D:\Program Files\Git\bin\git.exe config remote.origin.url http://140.210.216.73:6090/artfess/jd_gyl_web.git # timeout=10
Fetching upstream changes from http://140.210.216.73:6090/artfess/jd_gyl_web.git
 > D:\Program Files\Git\bin\git.exe --version # timeout=10
 > git --version # 'git version 2.24.1.windows.2'
using GIT_ASKPASS to set credentials 
 > D:\Program Files\Git\bin\git.exe fetch --tags --force --progress -- http://140.210.216.73:6090/artfess/jd_gyl_web.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > D:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/dev^{commit}" # timeout=10
Checking out Revision 327c6230198ff0425a0e12a19b29116290dadf4d (refs/remotes/origin/dev)
 > D:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
 > D:\Program Files\Git\bin\git.exe checkout -f 327c6230198ff0425a0e12a19b29116290dadf4d # timeout=10
Commit message: "Merge branch 'dev' of http://140.210.216.73:6090/artfess/jd_gyl_web into dev"
 > D:\Program Files\Git\bin\git.exe rev-list --no-walk ac29a7a6f85191ced43e62df5e4c0798e6692dda # timeout=10
[gyl-fvue] $ cmd /c call D:\apache-tomcat-9.0.8\temp\jenkins8087625579579314581.bat

D:\jenkins\workspace\gyl-fvue>node -v 
v20.18.0

D:\jenkins\workspace\gyl-fvue>npm -v 
10.8.2
[gyl-fvue] $ cmd /c call D:\apache-tomcat-9.0.8\temp\jenkins4080830176980206730.bat

D:\jenkins\workspace\gyl-fvue>npm config set registry https://registry.npm.taobao.org 
[gyl-fvue] $ cmd /c call D:\apache-tomcat-9.0.8\temp\jenkins2707508137235795529.bat

D:\jenkins\workspace\gyl-fvue>npm config get registry 
https://registry.npm.taobao.org
[gyl-fvue] $ cmd /c call D:\apache-tomcat-9.0.8\temp\jenkins6728548970431141996.bat

D:\jenkins\workspace\gyl-fvue>cd D:\jenkins\workspace\gyl-fvue   && npm install --strict-ssl false --ignore-scripts false   && npm run build 
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: vite-plugin-inspect@0.8.9
npm warn Found: vite@7.1.4
npm warn node_modules/vite
npm warn   dev vite@"^7.0.0" from the root project
npm warn   8 more (@vitejs/plugin-vue, @vitejs/plugin-vue-jsx, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer vite@"^3.1.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.1" from vite-plugin-inspect@0.8.9
npm warn node_modules/vite-plugin-inspect
npm warn   vite-plugin-inspect@"0.8.9" from vite-plugin-vue-devtools@7.7.7
npm warn   node_modules/vite-plugin-vue-devtools
npm warn
npm warn Conflicting peer dependency: vite@6.4.1
npm warn node_modules/vite
npm warn   peer vite@"^3.1.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.1" from vite-plugin-inspect@0.8.9
npm warn   node_modules/vite-plugin-inspect
npm warn     vite-plugin-inspect@"0.8.9" from vite-plugin-vue-devtools@7.7.7
npm warn     node_modules/vite-plugin-vue-devtools
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '@vitejs/plugin-vue@6.0.1',
npm warn EBADENGINE   required: { node: '^20.19.0 || >=22.12.0' },
npm warn EBADENGINE   current: { node: 'v20.18.0', npm: '10.8.2' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '@vitejs/plugin-vue-jsx@5.1.1',
npm warn EBADENGINE   required: { node: '^20.19.0 || >=22.12.0' },
npm warn EBADENGINE   current: { node: 'v20.18.0', npm: '10.8.2' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'vite@7.1.4',
npm warn EBADENGINE   required: { node: '^20.19.0 || >=22.12.0' },
npm warn EBADENGINE   current: { node: 'v20.18.0', npm: '10.8.2' }
npm warn EBADENGINE }

up to date in 21s

151 packages are looking for funding
  run `npm fund` for details

> jd_gyl_web@0.0.0 build
> run-p type-check "build-only {@}" --


> jd_gyl_web@0.0.0 type-check
> vue-tsc --build


> jd_gyl_web@0.0.0 build-only
> vite build

You are using Node.js 20.18.0. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.
D:\jenkins\workspace\gyl-fvue\node_modules\rollup\dist\native.js:67
		throw new Error(
		      ^

Error: Cannot find module @rollup/rollup-win32-x64-msvc. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
    at requireWithFriendlyError (D:\jenkins\workspace\gyl-fvue\node_modules\rollup\dist\native.js:67:9)
    at Object.<anonymous> (D:\jenkins\workspace\gyl-fvue\node_modules\rollup\dist\native.js:76:76)
    ... 3 lines matching cause stack trace ...
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at cjsLoader (node:internal/modules/esm/translators:346:17)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
    at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24) {
  [cause]: Error: Cannot find module '@rollup/rollup-win32-x64-msvc'
  Require stack:
  - D:\jenkins\workspace\gyl-fvue\node_modules\rollup\dist\native.js
      at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
      at Module._load (node:internal/modules/cjs/loader:1051:27)
      at Module.require (node:internal/modules/cjs/loader:1311:19)
      at require (node:internal/modules/helpers:179:18)
      at requireWithFriendlyError (D:\jenkins\workspace\gyl-fvue\node_modules\rollup\dist\native.js:49:10)
      at Object.<anonymous> (D:\jenkins\workspace\gyl-fvue\node_modules\rollup\dist\native.js:76:76)
      at Module._compile (node:internal/modules/cjs/loader:1469:14)
      at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
      at Module.load (node:internal/modules/cjs/loader:1288:32)
      at Module._load (node:internal/modules/cjs/loader:1104:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
      'D:\\jenkins\\workspace\\gyl-fvue\\node_modules\\rollup\\dist\\native.js'
    ]
  }
}

Node.js v20.18.0
ERROR: "build-only" exited with 1.
Build step 'Execute Windows batch command' marked build as failure
SSH: Current build result is [FAILURE], not going to run.
Finished: FAILURE