我正在使用 Cube.js 作为创建具有前端可视化的数据库的一部分。我是整个系统的新手,我正在尝试按照此处发布的教程进行操作:
https://d3-dashboard.cube.dev/setting-up-a-database-and-cube-js
我已经建立了 Postgres 数据库,但是当我去脚手架项目时:
npx cubejs-cli create d3-dashboard -d postgres
我收到一个错误(如下),它似乎与@cubejs-backend\cubestore 相关联。
我不确定这是否与我的 Node.js 设置有关。我通过其他一些故障排除安装了 14.16.1 版及更高版本,将 npm 升级到了 7.9.0 版。
这是我看到的错误 - 非常感谢任何帮助:
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)