(peer dependencies) Install @cubejs-backend/postgres-driver failed
Describe the bug
Install @cubejs-backend/postgres-driver failed.
It seems to be a peer dependencies version conflict issue.
To Reproduce Steps to reproduce the behavior:
-
Docker run
docker run -p 4000:4000 \ -p 15432:15432 \ -v ${PWD}:/cube/conf \ -e CUBEJS_DEV_MODE=true \ cubejs/cube:dev -
Open http://127.0.0.1:4000
-
Set Up a Database connection
-
Install postgres-driver
-
See error
npm install @cubejs-backend/postgres-driver --save-dev failed with exit code 1. Please check your console.
Expected behavior Install postgres-driver successfully.
Screenshots
Version: v0.35.72οΌlatestοΌ
Additional context
Seeing pnpm dealing with this kind of problem is smoother.
https://pnpm.io/how-peers-are-resolved
Hi @mokeyish π
Install postgres
What do you mean by that, exactly? It would be great to get more details.
I have just went through the steps described here and everything worked smoothly. I did not have to install any Postgres driver though as it's bundled with Cube in its Docker container.
@igorlukanin I've update the Step To Reproduce with screenshot.
My temporary solution is creating a directory with following structure
cubework
βββ justfile
βββ package.json
-
package.json, copy from https://github.com/cube-js/cube/blob/master/packages/cubejs-docker/package.json -
justfileexport PATH := absolute_path("node_modules/.bin:") + env_var("PATH") export CUBEJS_DEV_MODE := "true" setup: pnpm install serve: cubejs server cleanup: rm -rf .cubestore rm -rf .env rm -rf model -
startup
- install just https://just.systems/man/en/chapter_4.html
- install pnpm https://pnpm.io/installation
- just setup
- just serve
- open http://127.0.0.1:4000/
Does this only happen with the dev image? Could you please try latest?
Does this only happen with the
devimage? Could you please trylatest?
With the latest tag, npm install @cubejs-backend/postgres-driver is long time no response. I also tried other npm registry mirror, the same is true.
Hopefully it can be migrated to use pnpm or configured to use pnpm.
Hi @mokeyish π
Here's what I mentioned in one of my previous messaged:
I did not have to install any Postgres driver though as it's bundled with Cube in its Docker container.
Here's what you responded:
I've update the Step To Reproduce with screenshot.
However, I still don't understand what do you mean by "step 4 β Install postgres-driver" and why do you need to do that at all. After "step 3 β Set Up a Database connection", if that is a Postgres database, you will have a working connection, no driver installation required.
I'm afraid I'll need more details from you to understand what is the issue. If you can record a video where you follow the steps that you've described, that would be helpful.
Closing due to inactivity. Please feel free to reopen.