用 nodejs v24 编译 web的时候,提示(只有一个版本需求不满足):
npm warn EBADENGINE package: 'bk-magic-vue@2.5.9-beta.39',
npm warn EBADENGINE required: { node: '<= 16.14' },
npm warn EBADENGINE current: { node: 'v24.18.0', npm: '11.16.0' }
换用 nodejs v14.21 编译web的时候,会出现大量的:
npm WARN notsup Unsupported engine for minimatch@10.2.5: wanted: {"node":"18 || 20 || >=22"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: minimatch@10.2.5
npm WARN notsup Unsupported engine for ts-api-utils@2.5.0: wanted: {"node":">=18.12"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: ts-api-utils@2.5.0
npm WARN notsup Unsupported engine for @typescript-eslint/tsconfig-utils@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: @typescript-eslint/tsconfig-utils@8.62.1
npm WARN notsup Unsupported engine for @typescript-eslint/project-service@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: @typescript-eslint/project-service@8.62.1
npm WARN notsup Unsupported engine for @typescript-eslint/types@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: @typescript-eslint/types@8.62.1
npm WARN notsup Unsupported engine for brace-expansion@5.0.7: wanted: {"node":"18 || 20 || >=22"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: brace-expansion@5.0.7
npm WARN notsup Unsupported engine for balanced-match@4.0.4: wanted: {"node":"18 || 20 || >=22"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: balanced-match@4.0.4
npm WARN notsup Unsupported engine for @typescript-eslint/utils@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: @typescript-eslint/utils@8.62.1
npm WARN notsup Unsupported engine for @typescript-eslint/parser@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: @typescript-eslint/parser@8.62.1
npm WARN notsup Unsupported engine for @typescript-eslint/eslint-plugin@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
现在建议编译的nodejs 版本是多少?
用 nodejs v24 编译 web的时候,提示(只有一个版本需求不满足):
npm warn EBADENGINE package: 'bk-magic-vue@2.5.9-beta.39',
npm warn EBADENGINE required: { node: '<= 16.14' },
npm warn EBADENGINE current: { node: 'v24.18.0', npm: '11.16.0' }
换用 nodejs v14.21 编译web的时候,会出现大量的:
npm WARN notsup Unsupported engine for minimatch@10.2.5: wanted: {"node":"18 || 20 || >=22"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: minimatch@10.2.5
npm WARN notsup Unsupported engine for ts-api-utils@2.5.0: wanted: {"node":">=18.12"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: ts-api-utils@2.5.0
npm WARN notsup Unsupported engine for @typescript-eslint/tsconfig-utils@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: @typescript-eslint/tsconfig-utils@8.62.1
npm WARN notsup Unsupported engine for @typescript-eslint/project-service@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: @typescript-eslint/project-service@8.62.1
npm WARN notsup Unsupported engine for @typescript-eslint/types@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: @typescript-eslint/types@8.62.1
npm WARN notsup Unsupported engine for brace-expansion@5.0.7: wanted: {"node":"18 || 20 || >=22"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: brace-expansion@5.0.7
npm WARN notsup Unsupported engine for balanced-match@4.0.4: wanted: {"node":"18 || 20 || >=22"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: balanced-match@4.0.4
npm WARN notsup Unsupported engine for @typescript-eslint/utils@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: @typescript-eslint/utils@8.62.1
npm WARN notsup Unsupported engine for @typescript-eslint/parser@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
npm WARN notsup Not compatible with your version of node/npm: @typescript-eslint/parser@8.62.1
npm WARN notsup Unsupported engine for @typescript-eslint/eslint-plugin@8.62.1: wanted: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"} (current: {"node":"14.21.3","npm":"6.14.18"})
现在建议编译的nodejs 版本是多少?