简体   繁体   English

创建 Cube.js 时出错 API - 多维数据集存储失败

[英]Error when creating Cube.js API - Failure at cubestore

I'm working with Cube.js as part of an effort to create a database with front-end visualization.我正在使用 Cube.js 作为创建具有前端可视化的数据库的一部分。 I'm new to the whole system, and am attempting to follow a tutorial posted here:我是整个系统的新手,我正在尝试按照此处发布的教程进行操作:

https://d3-dashboard.cube.dev/setting-up-a-database-and-cube-js https://d3-dashboard.cube.dev/setting-up-a-database-and-cube-js

I have the Postgres database established, but when I go to scaffold the project with:我已经建立了 Postgres 数据库,但是当我用 go 来搭建项目时:

npx cubejs-cli create d3-dashboard -d postgres

I am receiving an error (below), which seems to be associated with @cubejs-backend\cubestore.我收到一个错误(如下),它似乎与@cubejs-backend\cubestore 相关联。

I'm not sure if this is associated with my setup of Node.js.我不确定这是否与我的 Node.js 设置有关。 I installed version 14.16.1 and later through some other troubleshooting upgraded npm to version 7.9.0.我安装了版本 14.16.1 及更高版本,通过其他一些故障排除将 npm 升级到版本 7.9.0。

Here's the error I'm seeing - any help greatly appreciated:这是我看到的错误 - 非常感谢任何帮助:


found 0 vulnerabilities
- Writing files from template
- Installing Cube Store driver
npm ERR! code 1
npm ERR! path C:\Program Files\nodejs\node_modules\d3-dashboard\node_modules\@cubejs-backend\cubestore
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c ./bin/post-install
npm ERR! '.' is not recognized as an internal or external command,
npm ERR! operable program or batch file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\allenc\AppData\Local\npm-cache\_logs\2021-04-09T16_17_36_455Z-debug.log

Cube.js Error ---------------------------------------

Error: npm install --save-dev @cubejs-backend/cubestore-driver failed with exit code 1
    at ChildProcess.<anonymous> (C:\Users\allenc\AppData\Local\npm-cache\_npx\b15e41626979eec6\node_modules\cubejs-cli\src\utils.ts:14:16)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.cp.emit (C:\Users\allenc\AppData\Local\npm-cache\_npx\b15e41626979eec6\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

It's was an issue, which was already fixed.这是一个问题,已经解决了。 Can you try with latest releases?您可以尝试使用最新版本吗?

Thanks谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM