/node_modules/jest-cli/build/cli/index.js:227 } catch { ^ SyntaxError: Unexpected t

本文档介绍了由于Node版本较低(8版本)导致Jest无法升级到26版本以上的问题。为了解决这个问题,有两种方案:一是将Jest版本回退到25.5.4或更低,二是升级Node版本到9及以上。选择适合你的解决方案来确保项目的正常运行。

原因是node版本比较低我这边是node8版本,需要把jest将到26版本以下,或者升级node版本9以上

解决方案

"jest": "^25.5.4"
正在执行任务: npm run test:jest > origin@0.1.1 test:jest > VUE_APP_SSO_ENV=test jest Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme FAIL tests/integration/kpiManage/editKpi/EditStandard.spec.ts ● Test suite failed to run Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: SyntaxError: Unexpected token (25:23) at Parser.pp$4.raise (node_modules/vue-template-es2015-compiler/buble.js:2757:13) at Parser.pp.unexpected (node_modules/vue-template-es2015-compiler/buble.js:647:8) at Parser.pp$3.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:2196:10) at Parser.<anonymous> (node_modules/vue-template-es2015-compiler/buble.js:6003:24) at Parser.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:6129:31) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2047:19) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1954:28) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExprList (node_modules/vue-template-es2015-compiler/buble.js:2663:20) at Parser.pp$3.parseSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2075:29) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2050:21) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOp (node_modules/vue-template-es2015-compiler/buble.js:1985:41) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1968:91) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExprList (node_modules/vue-template-es2015-compiler/buble.js:2663:20) at Parser.pp$3.parseSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2075:29) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2050:21) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExprList (node_modules/vue-template-es2015-compiler/buble.js:2663:20) at Parser.pp$3.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:2175:26) at Parser.<anonymous> (node_modules/vue-template-es2015-compiler/buble.js:6003:24) at Parser.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:6129:31) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2047:19) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExpression (node_modules/vue-template-es2015-compiler/buble.js:1896:19) at Parser.pp$1.parseReturnStatement (node_modules/vue-template-es2015-compiler/buble.js:946:31) at Parser.pp$1.parseStatement (node_modules/vue-template-es2015-compiler/buble.js:781:35) at Parser.parseStatement (node_modules/vue-template-es2015-compiler/buble.js:6116:31) at Parser.pp$1.parseBlock (node_modules/vue-template-es2015-compiler/buble.js:1112:23) at Parser.pp$3.parseFunctionBody (node_modules/vue-template-es2015-compiler/buble.js:2600:22) at Parser.pp$1.parseFunction (node_modules/vue-template-es2015-compiler/buble.js:1219:8) at Parser.pp$3.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:2184:17) at Parser.<anonymous> (node_modules/vue-template-es2015-compiler/buble.js:6003:24) at Parser.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:6129:31) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2047:19) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) FAIL tests/integration/kpiManage/createKpi/CreateStandard.spec.ts ● Test suite failed to run Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: SyntaxError: Unexpected token (25:23) at Parser.pp$4.raise (node_modules/vue-template-es2015-compiler/buble.js:2757:13) at Parser.pp.unexpected (node_modules/vue-template-es2015-compiler/buble.js:647:8) at Parser.pp$3.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:2196:10) at Parser.<anonymous> (node_modules/vue-template-es2015-compiler/buble.js:6003:24) at Parser.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:6129:31) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2047:19) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1954:28) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExprList (node_modules/vue-template-es2015-compiler/buble.js:2663:20) at Parser.pp$3.parseSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2075:29) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2050:21) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOp (node_modules/vue-template-es2015-compiler/buble.js:1985:41) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1968:91) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExprList (node_modules/vue-template-es2015-compiler/buble.js:2663:20) at Parser.pp$3.parseSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2075:29) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2050:21) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExprList (node_modules/vue-template-es2015-compiler/buble.js:2663:20) at Parser.pp$3.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:2175:26) at Parser.<anonymous> (node_modules/vue-template-es2015-compiler/buble.js:6003:24) at Parser.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:6129:31) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2047:19) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExpression (node_modules/vue-template-es2015-compiler/buble.js:1896:19) at Parser.pp$1.parseReturnStatement (node_modules/vue-template-es2015-compiler/buble.js:946:31) at Parser.pp$1.parseStatement (node_modules/vue-template-es2015-compiler/buble.js:781:35) at Parser.parseStatement (node_modules/vue-template-es2015-compiler/buble.js:6116:31) at Parser.pp$1.parseBlock (node_modules/vue-template-es2015-compiler/buble.js:1112:23) at Parser.pp$3.parseFunctionBody (node_modules/vue-template-es2015-compiler/buble.js:2600:22) at Parser.pp$1.parseFunction (node_modules/vue-template-es2015-compiler/buble.js:1219:8) at Parser.pp$3.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:2184:17) at Parser.<anonymous> (node_modules/vue-template-es2015-compiler/buble.js:6003:24) at Parser.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:6129:31) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2047:19) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) Test Suites: 2 failed, 2 total Tests: 0 total Snapshots: 0 total Time: 9.502 s Ran all test suites. npm error Lifecycle script `test:jest` failed with error: npm error code 1 npm error path /Users/tianyinfeng/Desktop/自动化测试/data_metrics_store/packages/origin npm error workspace origin@0.1.1 npm error location /Users/tianyinfeng/Desktop/自动化测试/data_metrics_store/packages/origin npm error command failed npm error command sh -c VUE_APP_SSO_ENV=test jest * 终端进程“/bin/zsh '-l', '-c', 'npm run test:jest'”已终止,退出代码: 1。 * 终端将被任务重用,按任意键关闭。 执行test时,这是什么问题,怎么解决
08-07
jest测试时:tests/integration/kpiManage/createKpi/CreateStandard.spec.ts ● Test suite failed to run Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: SyntaxError: Unexpected token (25:23) at Parser.pp$4.raise (node_modules/vue-template-es2015-compiler/buble.js:2757:13) at Parser.pp.unexpected (node_modules/vue-template-es2015-compiler/buble.js:647:8) at Parser.pp$3.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:2196:10) at Parser.<anonymous> (node_modules/vue-template-es2015-compiler/buble.js:6003:24) at Parser.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:6129:31) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2047:19) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1954:28) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExprList (node_modules/vue-template-es2015-compiler/buble.js:2663:20) at Parser.pp$3.parseSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2075:29) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2050:21) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOp (node_modules/vue-template-es2015-compiler/buble.js:1985:41) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1968:91) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExprList (node_modules/vue-template-es2015-compiler/buble.js:2663:20) at Parser.pp$3.parseSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2075:29) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2050:21) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExprList (node_modules/vue-template-es2015-compiler/buble.js:2663:20) at Parser.pp$3.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:2175:26) at Parser.<anonymous> (node_modules/vue-template-es2015-compiler/buble.js:6003:24) at Parser.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:6129:31) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2047:19) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) at Parser.pp$3.parseMaybeAssign (node_modules/vue-template-es2015-compiler/buble.js:1925:19) at Parser.pp$3.parseExpression (node_modules/vue-template-es2015-compiler/buble.js:1896:19) at Parser.pp$1.parseReturnStatement (node_modules/vue-template-es2015-compiler/buble.js:946:31) at Parser.pp$1.parseStatement (node_modules/vue-template-es2015-compiler/buble.js:781:35) at Parser.parseStatement (node_modules/vue-template-es2015-compiler/buble.js:6116:31) at Parser.pp$1.parseBlock (node_modules/vue-template-es2015-compiler/buble.js:1112:23) at Parser.pp$3.parseFunctionBody (node_modules/vue-template-es2015-compiler/buble.js:2600:22) at Parser.pp$1.parseFunction (node_modules/vue-template-es2015-compiler/buble.js:1219:8) at Parser.pp$3.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:2184:17) at Parser.<anonymous> (node_modules/vue-template-es2015-compiler/buble.js:6003:24) at Parser.parseExprAtom (node_modules/vue-template-es2015-compiler/buble.js:6129:31) at Parser.pp$3.parseExprSubscripts (node_modules/vue-template-es2015-compiler/buble.js:2047:19) at Parser.pp$3.parseMaybeUnary (node_modules/vue-template-es2015-compiler/buble.js:2024:17) at Parser.pp$3.parseExprOps (node_modules/vue-template-es2015-compiler/buble.js:1966:19) at Parser.pp$3.parseMaybeConditional (node_modules/vue-template-es2015-compiler/buble.js:1949:19) Test Suites: 2 failed, 2 total Tests: 0 total Snapshots: 0 total Time: 10.65 s Ran all test suites. npm error Lifecycle script `test:jest` failed with error: npm error code 1 npm error path /Users/tianyinfeng/Desktop/自动化测试/data_metrics_store/packages/origin npm error workspace origin@0.1.1 npm error location /Users/tianyinfeng/Desktop/自动化测试/data_metrics_store/packages/origin npm error command failed npm error command sh -c VUE_APP_SSO_ENV=test jest * 终端进程“/bin/zsh '-l', '-c', 'npm run test:jest'”已终止,退出代码: 1。 * 终端将被任务重用,按任意键关闭。 这是什么问题,怎么解决
08-07
(venv) gapinyc@DESKTOP-9QS7RL5:~/superset/superset-frontend$ npm audit # npm audit report bootstrap 3.1.1 - 3.4.1 Severity: moderate Bootstrap Vulnerable to Cross-Site Scripting in its Popover and Tooltip Components - https://github.com/advisories/GHSA-q58r-hwc8-rm9j Bootstrap Cross-Site Scripting (XSS) vulnerability for data-* attributes - https://github.com/advisories/GHSA-vxmc-5x29-h64v fix available via `npm audit fix --force` Will install bootstrap@5.3.8, which is a breaking change node_modules/bootstrap brace-expansion 1.0.0 - 1.1.11 brace-expansion Regular Expression Denial of Service vulnerability - https://github.com/advisories/GHSA-v6h2-p8h4-qcjw fix available via `npm audit fix` node_modules/brace-expansion braces <3.0.3 Severity: high Uncontrolled resource consumption in braces - https://github.com/advisories/GHSA-grv7-fg5c-xmjg fix available via `npm audit fix --force` Will install jest-enzyme@4.2.0, which is a breaking change node_modules/jest-environment-enzyme/node_modules/braces node_modules/sane/node_modules/braces micromatch <=4.0.7 Depends on vulnerable versions of braces node_modules/jest-environment-enzyme/node_modules/micromatch node_modules/sane/node_modules/micromatch @jest/transform <=24.9.0 || 30.0.0-alpha.1 - 30.0.0-beta.2 Depends on vulnerable versions of jest-haste-map Depends on vulnerable versions of jest-util Depends on vulnerable versions of micromatch node_modules/jest-environment-enzyme/node_modules/@jest/transform @jest/environment <=24.9.0 || 30.0.0-alpha.1 - 30.0.0-beta.2 Depends on vulnerable versions of @jest/fake-timers Depends on vulnerable versions of @jest/transform node_modules/jest-environment-enzyme/node_modules/@jest/environment anymatch 1.2.0 - 2.0.0 Depends on vulnerable versions of micromatch node_modules/jest-environment-enzyme/node_modules/anymatch node_modules/sane/node_modules/anymatch jest-haste-map 18.1.0 - 26.6.2 || 30.0.0-alpha.1 - 30.0.0-beta.2 Depends on vulnerable versions of anymatch Depends on vulnerable versions of jest-util Depends on vulnerable versions of micromatch Depends on vulnerable versions of sane node_modules/jest-environment-enzyme/node_modules/jest-haste-map sane 1.5.0 - 4.1.0 Depends on vulnerable versions of anymatch Depends on vulnerable versions of micromatch node_modules/sane jest-message-util 18.5.0-alpha.7da3df39 - 24.9.0 Depends on vulnerable versions of micromatch node_modules/jest-environment-enzyme/node_modules/jest-message-util @jest/fake-timers <=24.9.0 || 30.0.0-alpha.1 - 30.0.0-beta.2 Depends on vulnerable versions of jest-message-util node_modules/jest-environment-enzyme/node_modules/@jest/fake-timers jest-environment-jsdom 10.0.2 - 25.5.0 Depends on vulnerable versions of @jest/environment Depends on vulnerable versions of @jest/fake-timers Depends on vulnerable versions of jest-util Depends on vulnerable versions of jsdom node_modules/jest-environment-enzyme/node_modules/jest-environment-jsdom jest-environment-enzyme * Depends on vulnerable versions of jest-environment-jsdom node_modules/jest-environment-enzyme jest-enzyme >=5.0.0 Depends on vulnerable versions of jest-environment-enzyme node_modules/jest-enzyme jest-util 24.2.0-alpha.0 - 24.9.0 Depends on vulnerable versions of @jest/fake-timers node_modules/jest-environment-enzyme/node_modules/jest-util d3-color <3.1.0 Severity: high d3-color vulnerable to ReDoS - https://github.com/advisories/GHSA-36jr-mh4h-2g58 No fix available packages/superset-ui-core/node_modules/d3-color plugins/legacy-plugin-chart-horizon/node_modules/d3-color plugins/legacy-preset-chart-deckgl/node_modules/d3-color plugins/plugin-chart-word-cloud/node_modules/d3-color d3-interpolate 0.1.3 - 2.0.1 Depends on vulnerable versions of d3-color node_modules/@encodable/color/node_modules/d3-interpolate node_modules/d3-scale-chromatic/node_modules/d3-interpolate node_modules/d3-scale/node_modules/d3-interpolate node_modules/encodable/node_modules/d3-interpolate packages/superset-ui-core/node_modules/d3-scale/node_modules/d3-interpolate plugins/legacy-plugin-chart-horizon/node_modules/d3-interpolate plugins/legacy-preset-chart-deckgl/node_modules/d3-interpolate plugins/plugin-chart-word-cloud/node_modules/d3-interpolate @encodable/color * Depends on vulnerable versions of d3-interpolate Depends on vulnerable versions of d3-scale Depends on vulnerable versions of d3-scale-chromatic node_modules/@encodable/color encodable * Depends on vulnerable versions of @encodable/color Depends on vulnerable versions of d3-interpolate Depends on vulnerable versions of d3-scale node_modules/encodable d3-scale 0.1.5 - 3.3.0 Depends on vulnerable versions of d3-interpolate node_modules/@encodable/color/node_modules/d3-scale node_modules/d3-scale node_modules/encodable/node_modules/d3-scale packages/superset-ui-core/node_modules/d3-scale plugins/legacy-plugin-chart-horizon/node_modules/d3-scale plugins/legacy-preset-chart-deckgl/node_modules/d3-scale plugins/plugin-chart-word-cloud/node_modules/d3-scale d3-scale-chromatic 0.1.0 - 2.0.0 Depends on vulnerable versions of d3-interpolate node_modules/d3-scale-chromatic dompurify <3.2.4 Severity: moderate DOMPurify allows Cross-site Scripting (XSS) - https://github.com/advisories/GHSA-vhxf-7vqr-mrjg fix available via `npm audit fix` plugins/legacy-preset-chart-nvd3/node_modules/dompurify esbuild <=0.24.2 Severity: moderate esbuild enables any website to send any requests to the development server and read the response - https://github.com/advisories/GHSA-67mh-4wv8-2f99 fix available via `npm audit fix --force` Will install esbuild@0.25.11, which is a breaking change node_modules/esbuild @storybook/builder-manager <=8.2.0-beta.3 Depends on vulnerable versions of @storybook/core-common Depends on vulnerable versions of esbuild node_modules/@storybook/builder-manager @storybook/core-server <=0.0.0-pr-28385-sha-9aab3bd7 || 6.5.17-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of @storybook/builder-manager Depends on vulnerable versions of @storybook/core-common Depends on vulnerable versions of @storybook/telemetry node_modules/@storybook/core-server @storybook/core-common <=0.0.0-pr-28385-sha-9aab3bd7 || 6.5.17-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of esbuild node_modules/@storybook/core-common @storybook/addon-essentials <=0.0.0-pr-30567-sha-cd9d89ab || 6.5.17-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of @storybook/addon-controls Depends on vulnerable versions of @storybook/addon-docs Depends on vulnerable versions of @storybook/core-common node_modules/@storybook/addon-essentials @storybook/builder-webpack5 <=0.0.0-pr-30567-sha-cd9d89ab || 6.5.17-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of @storybook/core-common Depends on vulnerable versions of @storybook/core-webpack node_modules/@storybook/builder-webpack5 @storybook/react-webpack5 <=8.2.0-beta.3 Depends on vulnerable versions of @storybook/builder-webpack5 Depends on vulnerable versions of @storybook/preset-react-webpack Depends on vulnerable versions of @storybook/react node_modules/@storybook/react-webpack5 @storybook/cli <=0.0.0-pr-28385-sha-9aab3bd7 || 6.5.17-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of @storybook/core-common Depends on vulnerable versions of @storybook/core-server Depends on vulnerable versions of @storybook/telemetry node_modules/@storybook/cli storybook <=0.0.0-pr-32826-sha-83cda975 || 6.5.17-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of @storybook/cli node_modules/storybook @storybook/core-webpack <=8.2.0-beta.3 Depends on vulnerable versions of @storybook/core-common node_modules/@storybook/core-webpack @storybook/docs-tools <=0.0.0-pr-28385-sha-9aab3bd7 || 6.5.17-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of @storybook/core-common node_modules/@storybook/docs-tools @storybook/blocks <=8.2.0-beta.3 Depends on vulnerable versions of @storybook/docs-tools Depends on vulnerable versions of markdown-to-jsx node_modules/@storybook/blocks @storybook/addon-controls <=0.0.0-pr-27108-sha-2470133a || 8.0.0-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of @storybook/blocks node_modules/@storybook/addon-controls @storybook/addon-docs <=0.0.0-pr-30567-sha-cd9d89ab || 8.0.0-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of @storybook/blocks node_modules/@storybook/addon-docs @storybook/preset-react-webpack <=8.2.0-beta.3 Depends on vulnerable versions of @storybook/core-webpack Depends on vulnerable versions of @storybook/docs-tools Depends on vulnerable versions of @storybook/react node_modules/@storybook/preset-react-webpack @storybook/react <=0.0.0-pr-28385-sha-9aab3bd7 || 6.5.17-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of @storybook/docs-tools node_modules/@storybook/react @storybook/telemetry <=0.0.0-pr-28385-sha-9aab3bd7 || 6.5.17-alpha.0 - 8.2.0-beta.3 Depends on vulnerable versions of @storybook/core-common node_modules/@storybook/telemetry eslint-plugin-translation-vars * Severity: critical Malware in eslint-plugin-translation-vars - https://github.com/advisories/GHSA-5vr8-537w-77jc No fix available node_modules/eslint-plugin-translation-vars tools/eslint-plugin-translation-vars form-data <2.5.4 Severity: critical form-data uses unsafe random function in form-data for choosing boundary - https://github.com/advisories/GHSA-fjxv-7rqg-78g4 fix available via `npm audit fix --force` Will install jest-enzyme@4.2.0, which is a breaking change node_modules/request/node_modules/form-data request * Depends on vulnerable versions of form-data Depends on vulnerable versions of tough-cookie node_modules/request jsdom 0.1.20 || 0.2.0 - 16.5.3 Depends on vulnerable versions of request Depends on vulnerable versions of tough-cookie node_modules/jest-environment-enzyme/node_modules/jsdom request-promise-core * Depends on vulnerable versions of request node_modules/request-promise-core request-promise-native >=1.0.0 Depends on vulnerable versions of request Depends on vulnerable versions of request-promise-core Depends on vulnerable versions of tough-cookie node_modules/request-promise-native markdown-to-jsx <7.4.0 Severity: moderate Cross site scripting in markdown-to-jsx - https://github.com/advisories/GHSA-4wx3-54gh-9fr9 fix available via `npm audit fix --force` Will install @storybook/addon-essentials@8.6.14, which is outside the stated dependency range node_modules/@storybook/blocks/node_modules/markdown-to-jsx min-document * min-document vulnerable to prototype pollution - https://github.com/advisories/GHSA-rx8g-88g5-qh64 fix available via `npm audit fix --force` Will install react-hot-loader@1.3.1, which is a breaking change node_modules/min-document global >=2.0.3 Depends on vulnerable versions of min-document node_modules/global react-hot-loader >=2.0.0-alpha Depends on vulnerable versions of global node_modules/react-hot-loader path-to-regexp 2.0.0 - 3.2.0 Severity: high path-to-regexp outputs backtracking regular expressions - https://github.com/advisories/GHSA-9wv6-86v2-598j fix available via `npm audit fix --force` Will install fetch-mock@12.5.5, which is a breaking change node_modules/fetch-mock/node_modules/path-to-regexp fetch-mock 6.0.0-beta.2 - 10.0.8 Depends on vulnerable versions of path-to-regexp node_modules/fetch-mock prismjs <1.30.0 Severity: moderate PrismJS DOM Clobbering vulnerability - https://github.com/advisories/GHSA-x7hr-w5r2-h6wg fix available via `npm audit fix --force` Will install react-syntax-highlighter@16.0.0, which is a breaking change node_modules/refractor/node_modules/prismjs refractor <=4.6.0 Depends on vulnerable versions of prismjs node_modules/refractor react-syntax-highlighter 6.0.0 - 15.6.6 Depends on vulnerable versions of refractor node_modules/react-syntax-highlighter tar-fs 3.0.0 - 3.1.0 Severity: high tar-fs can extract outside the specified dir with a specific tarball - https://github.com/advisories/GHSA-8cj5-5rvv-wf4v tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball - https://github.com/advisories/GHSA-vj76-c3g6-qr5v fix available via `npm audit fix` node_modules/tar-fs tough-cookie <4.1.3 Severity: moderate tough-cookie Prototype Pollution vulnerability - https://github.com/advisories/GHSA-72xf-g2v4-qvf3 fix available via `npm audit fix --force` Will install jest-enzyme@4.2.0, which is a breaking change node_modules/jest-environment-enzyme/node_modules/tough-cookie node_modules/request-promise-native/node_modules/tough-cookie node_modules/request/node_modules/tough-cookie webpack-dev-server <=5.2.0 Severity: moderate webpack-dev-server users' source code may be stolen when they access a malicious web site with non-Chromium based browser - https://github.com/advisories/GHSA-9jgg-88mc-972h webpack-dev-server users' source code may be stolen when they access a malicious web site - https://github.com/advisories/GHSA-4v9v-hfq4-rm2v fix available via `npm audit fix --force` Will install webpack-dev-server@5.2.2, which is a breaking change node_modules/webpack-dev-server 57 vulnerabilities (4 low, 39 moderate, 11 high, 3 critical) To address issues that do not require attention, run: npm audit fix To address all issues possible (including breaking changes), run: npm audit fix --force Some issues need review, and may require choosing a different dependency. (venv) gapinyc@DESKTOP-9QS7RL5:~/superset/superset-frontend$
10-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值