如何添加新地图到图表“country_map”Apache Superset

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

美好的一天。我从 superst/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries 复制 Russia.geojson 并将其重命名为 newRussia.geojson 以根据 https:// 的说明检查国家/地区添加功能superset.apache.org/docs/miscellaneous/country-map-tools/。之后,我将文件名添加到导入和“导出常量国家/地区”列表中。我卡在第三个了

Error: npm: The npm name is not recognized as the name of a cmdlet, function, script file, or executable program.

我正在通过 Pycharm 终端使用安装在 Docker 中的 Superset v3.1.1。我尝试通过 pip install 安装 npm。安装成功,但错误依然存在。 在许多指南中,没有步骤3和4,容器是立即启动的。但启动时出现如下错误:

ERROR in src/visualizations/TimeTable/controlPanel.js:33:10

docker apache-superset
1个回答
0
投票

我通过下载 Node.js 并在 Node 终端上完成步骤 3 和 4 解决了这个问题。在 Windows 中,它在安装 Node.js 期间显示为应用程序。之后,触发了 docker build 命令,并将地图添加到country_map图表中。

命令的执行也存在问题,在许多指南中都没有对此进行解释。这是对我有用的命令:

docker build -f Dockerfile --force-rm -t <name> <path> 

name是你要安装的容器的名称; path 是 Dockerfile 的完整路径

Node.js 安装说明:https://medium.com/devops-with-valentine/how-to-install-node-js-and-npm-on-windows-10-windows-11-139442f90f12

从网站https://nodejs.org/下载安装程序并使用基本设置进行安装。推荐使用 LTS(长期支持)版本。

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