无法在Windows 10上安装Apache SuperSet-在步骤11/32失败:运行cd / app / superset / assets && npm运行build && rm -rf node_modules

时间:2019-12-07 23:56:15

标签: superset apache-superset

我正在尝试使用Docker桌面社区版2.1.0.5版上的Docker容器在Windows 10上安装Apache SuperSet。我遵循https://superset.incubator.apache.org/installation.html#superset-installation-and-initialization“从Docker开始”的SuperSet文档中的建议

运行docker-compose updocker-compose run -e SUPERSET_LOAD_EXAMPLES=yes --rm superset ./docker-init.sh时,我总是遇到相同的错误。

我曾尝试使用npm update和caniuse-lite升级npm,但是npm build似乎每次都下载了caniuse-lite的另一个过时版本,因此它永远不会获得更新的版本。建立SuperSet。

SuperSet构建始终进入步骤11/32,并因以下错误而失败:

PS C:\users\lysak\incubator-superset> docker-compose run -e SUPERSET_LOAD_EXAMPLES=yes --rm superset ./docker-init.sh
Creating incubator-superset_postgres_1 ... done                                                                                                                                        Creating incubator-superset_redis_1    ... done                                                                                                                                        Building superset
Step 1/32 : ARG PY_VER=3.6.9
Step 2/32 : FROM python:${PY_VER} AS superset-py
 ---> 5bf410ee7bb2
Step 3/32 : RUN mkdir /app         && apt-get update -y         && apt-get install -y --no-install-recommends             build-essential             default-libmysqlclient-dev             libpq-dev         && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> ab9bca097c76
Step 4/32 : COPY ./requirements.txt /app/
 ---> Using cache
 ---> 7fb9af974dfc
Step 5/32 : RUN cd /app         && pip install --no-cache -r requirements.txt
 ---> Using cache
 ---> de369d00ea55

Step 6/32 : FROM node:10-jessie AS superset-node
 ---> 48b88f03a78a
Step 7/32 : RUN mkdir -p /app/superset/assets
 ---> Using cache
 ---> a4c90f0692c5
Step 8/32 : COPY ./superset/assets/package* /app/superset/assets/
 ---> Using cache
 ---> 48144fc78100
Step 9/32 : RUN cd /app/superset/assets         && npm ci
 ---> Using cache
 ---> 17ef2a24d08a
Step 10/32 : COPY ./superset/assets /app/superset/assets
 ---> Using cache
 ---> 524aabe08d04
Step 11/32 : RUN cd /app/superset/assets         && npm run build         && rm -rf node_modules
 ---> Running in 649d97f7d7c7

> superset@0.999.0-dev build /app/superset/assets
> cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors --progress

clean-webpack-plugin: /app/superset/assets/dist has been removed.
Starting type checking service...
Using 1 worker with 2048MB memory limit
 92% chunk asset optimization OptimizeCssAssetsWebpackPluginBrowserslist: caniuse-lite is outdated. Please run next command `npm update`
 92% chunk asset optimization TerserPluginnpm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! superset@0.999.0-dev build: `cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors --progress`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the superset@0.999.0-dev build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-12-06T03_31_57_536Z-debug.log
ERROR: Service 'superset' failed to build: The command '/bin/sh -c cd /app/superset/assets         && npm run build         && rm -rf node_modules' returned a non-zero code: 1
PS C:\users\lysak\incubator-superset>

1 个答案:

答案 0 :(得分:0)

它当前在Windows上无法正常运行。安装的一部分涉及到unix符号链接的创建,该链接无效。有解决此问题的建议,希望很快会通过。这里是一个链接: https://github.com/apache/incubator-superset/issues/8805