Node.js 创建Cube.js API时出错-cubestore失败

Node.js 创建Cube.js API时出错-cubestore失败,node.js,postgresql,cube.js,Node.js,Postgresql,Cube.js,我正在使用Cube.js创建一个具有前端可视化的数据库。我对整个系统还不熟悉,我正试图遵循这里发布的教程: 我已经建立了Postgres数据库,但当我着手构建项目时: npx cubejs-cli create d3-dashboard -d postgres 我收到一个错误(如下),它似乎与@cubejs backend\cubestore有关 我不确定这是否与我的Node.js设置相关。我安装了14.16.1版和更高版本,并通过一些其他故障排除将npm升级到7.9.0版 以下是我看到的错

我正在使用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)


发现0个漏洞
-从模板写入文件
-安装多维数据集存储驱动程序
npm错误!代码1
npm错误!路径C:\Program Files\nodejs\node\u modules\d3 dashboard\node\u modules\@cubejs backend\cubestore
npm错误!命令失败
npm错误!命令C:\WINDOWS\system32\cmd.exe/d/s/C./bin/post-install
npm错误!’未被识别为内部或外部命令,
npm错误!可操作的程序或批处理文件。
npm错误!此运行的完整日志可在以下位置找到:
npm错误!C:\Users\allenc\AppData\Local\npm cache\\u logs\2021-04-09T16\u 17\u 36\u 455Z-debug.log
Cube.js错误---------------------------------------
错误:npm安装--保存dev@cubejs backend/cubestore驱动程序失败,退出代码为1
在这个过程中。(C:\Users\allenc\AppData\Local\npm cache\\u npx\b15e41626979eec6\node\u modules\cubejs cli\src\utils.ts:14:16)
在ChildProcess.emit(events.js:315:20)
在ChildProcess.cp.emit(C:\Users\allenc\AppData\Local\npm cache\\u npx\b15e41626979eec6\node\u modules\cross spawn\lib\enoint.js:34:29)
在maybeClose(内部/子进程js:1048:16)
在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:288:5)

这是一个问题,已经解决了。你能试用最新版本吗


谢谢你的回复。我一直在使用Node.js的14.16.1版。升级到15.14.0版,似乎解决了这个问题。