Open mokeyish opened 2 months ago
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
justfile
export 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
Does this only happen with the dev
image? Could you please try latest
?
Does this only happen with the
dev
image? 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.
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
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