apache 超集错误 - 未能解决:进程“/bin/sh -c npm run ${BUILD_CMD}”未成功完成:退出代码:1

问题描述 投票:0回答:1

我在 docker 中安装 Apache superset 时遇到此错误,并且无法修复它。 我一直在尝试寻找这个问题,但没有找到答案。 我该如何解决它?

1842.9 react-hooks/exhaustive-deps: React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.
1842.9     59 |         {} as { [key in string]: string },
1842.9     60 |       ),
1842.9   > 61 |     [JSON.stringify(data)],
1842.9        |      ^^^^^^^^^^^^^^^^^^^^
1842.9     62 |   );
1842.9     63 |
1842.9     64 |   const handleChange = (values: string[] | string | undefined | null) => {
1842.9
1842.9 WARNING in src/filters/components/TimeGrain/TimeGrainFilterPlugin.tsx:87:6
1842.9 react-hooks/exhaustive-deps: React Hook useEffect has missing dependencies: 
1842.9

...

1842.9 ERROR in packages/superset-ui-demo/storybook/shared/components/ResizableChartDemo.tsx:22:35
1842.9 import/no-unresolved: Unable to resolve path to module '@storybook/types'.
1842.9     20 | import React, { useState, ReactNode } from 'react';
1842.9     21 | import { styled } from '@superset-ui/core';
1842.9   > 22 | import { DecoratorFunction } from '@storybook/types';
1842.9        |                                   ^^^^^^^^^^^^^^^^^^
1842.9     23 | import ResizablePanel, { Size } from './ResizablePanel';
1842.9     24 |
1842.9     25 | export const SupersetBody = styled.div`
1842.9
1842.9 webpack 5.89.0 compiled with 1 error and 406 warnings in 1684702 ms
------
failed to solve: process "/bin/sh -c npm run ${BUILD_CMD}" did not complete successfully: exit code: 1
docker macos apache-superset
1个回答
0
投票

要开始使用 Superset,请按照以下步骤操作:

  1. 确保您的系统上安装了 Node.js。

  2. 打开终端并运行以下命令来克隆 Superset 存储库:

    git克隆--深度=1https://github.com/apache/superset.git

  3. 克隆存储库后,导航到 Superset 目录并使用 Docker Compose 启动应用程序。运行以下命令:

    docker compose -f docker-compose-non-dev.yml 向上

© www.soinside.com 2019 - 2024. All rights reserved.