求助kibana执行yarn build --skip-os-packages报错

yarn run v1.21.1
$ node scripts/build --all-platforms --skip-os-packages
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: GitHub - browserslist/browserslist: 🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
info [ global ] Verifying environment meets requirements
│ succ Node.js version verified
│ succ ✓ 0 sec

info [ global ] Cleaning artifacts from previous builds
│ debg Deleting patterns: [
│ 'C:\kbn\kibana\build',
│ 'C:\kbn\kibana\target',
│ 'C:\kbn\kibana\.node_binaries'
│ ]
│ debg Deleted 2 files/directories
│ succ ✓ 2 sec

info [ global ] Downloading node.js builds for all platforms
│ debg Downloading shasum values for node version 16.13.0 from https://cdn.npmmirror.com/binaries/node/v16.13.0/SHASUMS256.txt
│ debg [1/3] Attempting download to string of [https://cdn.npmmirror.com/binaries/node/v16.13.0/SHASUMS256.txt]
│ succ Downloaded [https://cdn.npmmirror.com/binaries/node/v16.13.0/SHASUMS256.txt]
│ debg [1/3] Attempting download of https://cdn.npmmirror.com/binaries/node/v16.13.0/node-v16.13.0-linux-x64.tar.gz sha256
│ debg Downloaded https://cdn.npmmirror.com/binaries/node/v16.13.0/node-v16.13.0-linux-x64.tar.gz and verified checksum
│ succ ✓ 4 sec

info [ global ] Extracting node.js builds for all platforms
│ succ ✓ 5 sec

info [ kibana ] Copying source into platform-generic build directory
│ succ ✓ 8 sec

info [ kibana ] Copying bin scripts into platform-generic build directory
│ succ ✓ 0 sec

info [ kibana ] Replacing favicons with built version
│ succ ✓ 0 sec

info [ kibana ] Creating some empty directories and files to prevent file-permission issues
│ succ ✓ 0 sec

info [ kibana ] Creating README.md file
│ succ ✓ 0 sec

info [ kibana ] Building distributable versions of Bazel packages
info Preparing Bazel projects production build for [@elastic/apm-synthtrace, @elastic/datemath, @elastic/safer-lodash-set, @kbn/ace, @kbn/alerts, @kbn/analytics, @kbn/apm-config-loader, @kbn/apm-utils, @kbn/config, @kbn/config-schema, @kbn/crypto, @kbn/es-query, @kbn/field-types, @kbn/i18n, @kbn/interpreter, @kbn/io-ts-utils, @kbn/legacy-logging, @kbn/logging, @kbn/mapbox-gl, @kbn/monaco, @kbn/rule-data-utils, @kbn/securitysolution-autocomplete, @kbn/securitysolution-es-utils, @kbn/securitysolution-hook-utils, @kbn/securitysolution-io-ts-alerting-types, @kbn/securitysolution-io-ts-list-types, @kbn/securitysolution-io-ts-types, @kbn/securitysolution-io-ts-utils, @kbn/securitysolution-list-api, @kbn/securitysolution-list-constants, @kbn/securitysolution-list-hooks, @kbn/securitysolution-list-utils, @kbn/securitysolution-t-grid, @kbn/securitysolution-utils, @kbn/server-http-tools, @kbn/server-route-repository, @kbn/std, @kbn/timelion-grammar, @kbn/tinymath, @kbn/typed-react-router-config, @kbn/ui-framework, @kbn/ui-shared-deps-npm, @kbn/ui-shared-deps-src, @kbn/utility-types, @kbn/utils]
info [bazel] INFO: Invocation ID: b0ee605e-a583-49ec-9a91-4b5c58e80248
info [bazel] INFO: Analyzed target //packages:build (1 packages loaded, 377 targets configured).
info [bazel] INFO: Found 1 target...
info [bazel] ERROR: C:/kbn/kibana/packages/kbn-utils/BUILD.bazel:41:16: Action packages/kbn-utils/target_node failed: (Exit 1): babel.bat failed: error executing command bazel-out/host/bin/external/npm/@babel/cli/bin/babel.bat ./packages/kbn-utils/src --out-dir bazel-out/x64_windows-fastbuild/bin/packages/kbn-utils/target_node --no-babelrc --extensions .ts,.tsx,.js ... (remaining 4 argument(s) skipped)
info [bazel] ??? Linux ? Windows ?????????????
info [bazel] ?????? Microsoft Store ??????:
info [bazel] Install WSL | Microsoft Learn
info [bazel] INFO: Elapsed time: 6.578s, Critical Path: 5.13s
info [bazel] INFO: 7 processes: 7 internal.
info [bazel]
│ERROR failure 7 sec
│ERROR Error: The bazel command that was running failed to complete.
│ at runBazelCommandWithRunner (C:\kbn\kibana\node_modules@kbn\pm\dist\index.js:52673:11)
│ at runMicrotasks ()
│ at processTicksAndRejections (node:internal/process/task_queues:96:5)
│ at runBazel (C:\kbn\kibana\node_modules@kbn\pm\dist\index.js:52681:3)
│ at buildBazelProductionProjects (C:\kbn\kibana\node_modules@kbn\pm\dist\index.js:61978:3)
│ at Object.run (C:\kbn\kibana\src\dev\build\tasks/build_packages_task.ts:63:5)
│ at execTask (C:\kbn\kibana\src\dev\build\lib/runner.ts:47:7)
│ at run (C:\kbn\kibana\src\dev\build\lib/runner.ts:77:9)
│ at buildDistributables (C:\kbn\kibana\src\dev\build/build_distributables.ts:70:5)

error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.

Hello,
Kibana development under Windows is not supported any more. The alternative is to use WSL.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.