作为创建具有前端可视化的数据库的努力的一部分,我正在与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)发布于 2021-04-15 23:28:11
这是一个问题,已经解决了。你能试试最新的版本吗?
谢谢
https://stackoverflow.com/questions/67025015
复制相似问题