Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while installing #292

Open
vanderleisp opened this issue Dec 3, 2024 · 5 comments
Open

error while installing #292

vanderleisp opened this issue Dec 3, 2024 · 5 comments

Comments

@vanderleisp
Copy link

I´ve tried several ways to install PGLITE, but even forcing its install on backend folder then getting back to the main folder, and running "quick" I´ve always get error, like the below, on a Windows 11 machine.
Did pnpm install @electric-sql/pglite on the backend folder, and seems it installed, but then again trying to run the quick command and got the same error.

===============

$ pnpm quick

@cellajs/[email protected] quick C:\Temp\cellaJS\cella
pnpm --filter backend run quick & turbo dev --filter frontend --filter tus

[email protected] quick C:\Temp\cellaJS\cella\backend
PGLITE=true tsx scripts/quick.ts && PGLITE=true pnpm dev

'PGLITE' is not recognized as an internal or external command,
operable program or batch file.
C:\Temp\cellaJS\cella\backend:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  [email protected] quick: PGLITE=true tsx scripts/quick.ts && PGLITE=true pnpm dev
Exit status 1
turbo 2.3.3

• Packages in scope: frontend, tus
• Running dev in 2 packages
• Remote caching disabled
frontend:dev: cache bypass, force executing 3098315129c9ec0b
tus:dev: cache bypass, force executing 7536d977a98805bf
tus:dev:
tus:dev: > [email protected] dev C:\Temp\cellaJS\cella\tus
tus:dev: > NODE_ENV=development tsup --watch --onSuccess "tsx dist/index.js"
tus:dev:
tus:dev: 'NODE_ENV' is not recognized as an internal or external command,
tus:dev: operable program or batch file.
tus:dev:  ELIFECYCLE  Command failed with exit code 1.
frontend:dev:
frontend:dev: > [email protected] dev C:\Temp\cellaJS\cella\frontend
frontend:dev: > NODE_ENV=development vite --mode development && node --trace-warnings
frontend:dev:
frontend:dev: 'NODE_ENV' is not recognized as an internal or external command,
frontend:dev: operable program or batch file.
frontend:dev:  ELIFECYCLE  Command failed with exit code 1.
tus:dev: ERROR: command finished with error: command (C:\Temp\cellaJS\cella\tus) C:\Users\xxxxx\AppData\Local\pnpm\pnpm.exe run dev exited (1)
tus#dev: command (C:\Temp\cellaJS\cella\tus) C:\Users\xxxxx\AppData\Local\pnpm\pnpm.exe run dev exited (1)

Tasks: 0 successful, 2 total
Cached: 0 cached, 2 total
Time: 2.429s
Failed: tus#dev

ERROR run failed: command exited (1)
 ELIFECYCLE  Command failed with exit code 1.

@flipvh
Copy link
Contributor

flipvh commented Dec 4, 2024

Hi @vanderleisp thanks for reporting this. It seems we should use cross-env to support env variables on Windows machines. let me try to get this done

@vanderleisp
Copy link
Author

tested it again and seems its working, so will test it more later. Thanks.

@flipvh
Copy link
Contributor

flipvh commented Jan 6, 2025

Thanks, sorry for taking such a long time and thnks for testing! We have running multiple projects at once 😵 .

@flipvh
Copy link
Contributor

flipvh commented Jan 13, 2025

Hi @vanderleisp you managed to get it working again? There have been maybe many breaking changes, so you might want to restart from scratch, cella is not yet ready unfortunately. Hope to get there in a few weeks.

@vanderleisp
Copy link
Author

Tried today, and again its crashing here.

I updated the pnpm tool, so don´t know if this could cause some problems.

Tried the Quick Setup and got below errors:

$ pnpm install
Scope: all 9 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +1960
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1960, reused 1959, downloaded 0, added 1960, done

dependencies:

  • dotenv 16.4.7

devDependencies:

  • @biomejs/biome 1.9.4
  • @evilmartians/lefthook 1.10.10
  • cross-env 7.0.3
  • rimraf 6.0.1
  • tsx 4.19.2
  • typescript 5.7.3
  • vitest 2.1.8

. prepare$ node prepare.js
│ Not in development. Skipping prepare script.
└─ Done in 214ms
Done in 50.1s

= = = = = =

$ pnpm quick

@cellajs/[email protected] quick C:\Temp\cellaJS\cella
cross-env FORCE_COLOR=1 pnpm -r --parallel --stream quick

Scope: 8 of 9 workspace projects
frontend quick$ cross-env VITE_QUICK=true pnpm dev
backend quick$ cross-env PGLITE=true tsx scripts/quick.ts && cross-env PGLITE=true pnpm dev
studio quick$ cross-env PGLITE=true pnpm dev
tus quick$ pnpm dev
tus quick: > [email protected] dev C:\Temp\cellaJS\cella\tus
tus quick: > cross-env NODE_ENV=development tsup --watch --onSuccess "tsx dist/index.js"
frontend quick: > [email protected] dev C:\Temp\cellaJS\cella\frontend
frontend quick: > cross-env NODE_ENV=development vite --mode development && node --trace-warnings
studio quick: > [email protected] dev C:\Temp\cellaJS\cella\studio
studio quick: > tsx ../backend/scripts/drizzle-studio.ts
studio quick:
studio quick: ✔ Drizzle Studio started
studio quick:
tus quick: CLI Building entry: src/index.ts
tus quick: CLI Using tsconfig: tsconfig.json
tus quick: CLI tsup v8.3.5
tus quick: CLI Using tsup config: C:\Temp\cellaJS\cella\tus\tsup.config.ts
tus quick: CLI Running in watch mode
tus quick: CLI Target: es2020
tus quick: CLI Cleaning output folder
tus quick: ESM Build start
tus quick: ESM dist\index.js 3.97 KB
tus quick: ESM dist\index.js.map 8.33 KB
tus quick: ESM ⚡️ Build success in 36ms
backend quick: Created .env file
studio quick: Reading config file 'C:\Temp\cellaJS\cella\backend\drizzle.config.ts'
tus quick: Cella DEVELOPMENT TUS server is available on http://localhost:4100/
backend quick: > [email protected] seed:user C:\Temp\cellaJS\cella\backend
backend quick: > tsx scripts/seeds/user/index.ts
backend quick: RuntimeError: Aborted(). Build with -sASSERTIONS for more info.
backend quick: at abort (C:\Temp\cellaJS\cella\node_modules.pnpm@[email protected]\node_m
odules@electric-sql\pglite\dist\index.js:1:78493)
backend quick: at __abort_js (C:\Temp\cellaJS\cella\node_modules.pnpm@[email protected]\n
ode_modules@electric-sql\pglite\dist\index.js:2:64310)
backend quick: at wasm://wasm/01ead51e:wasm-function[10929]:0x5838e8
backend quick: at wasm://wasm/01ead51e:wasm-function[9265]:0x4d4fe5
backend quick: at wasm://wasm/01ead51e:wasm-function[5655]:0x3b3d83
backend quick: at wasm://wasm/01ead51e:wasm-function[4546]:0x3391b0
backend quick: at wasm://wasm/01ead51e:wasm-function[2868]:0x1dfe80
backend quick: at Object.Module._pg_initdb (C:\Temp\cellaJS\cella\node_modules.pnpm@electric-sql+p
[email protected]\node_modules@electric-sql\pglite\dist\index.js:3:112724)
backend quick: at ce.Ue (C:\Temp\cellaJS\cella\node_modules.pnpm@[email protected]\node_m
odules@electric-sql\pglite\dist\index.js:3:243412)
backend quick: at async ce._checkReady (C:\Temp\cellaJS\cella\node_modules.pnpm@electric-sql+pglit
[email protected]\node_modules@electric-sql\pglite\dist\index.js:3:238920)
backend quick:  ELIFECYCLE  Command failed with exit code 1.
backend quick: Error executing command: pnpm run seed:user Error: Command failed: pnpm run seed:user
backend quick: at genericNodeError (node:internal/errors:984:15)
backend quick: at wrappedFn (node:internal/errors:538:14)
backend quick: at checkExecSyncError (node:child_process:891:11)
backend quick: at execSync (node:child_process:963:15)
backend quick: at (C:\Temp\cellaJS\cella\backend\scripts\quick.ts:22:5) {
backend quick: status: 1,
backend quick: signal: null,
backend quick: output: [ null, null, null ],
backend quick: pid: 16312,
backend quick: stdout: null,
backend quick: stderr: null
backend quick: }
studio quick: Warning Drizzle Studio is currently in Beta. If you find anything that is not working as
expected or should be improved, feel free to create an issue on GitHub: https://github.com/drizzle-team
/drizzle-kit-mirror/issues/new or write to us on Discord: https://discord.gg/WcRKz2FFxN
studio quick: Drizzle Studio is up and running on https://local.drizzle.studio
backend quick: Failed
C:\Temp\cellaJS\cella\backend:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  [email protected] quick: cross-env PGLITE=true tsx scripts/quick.ts && cross-env PGLITE=true pnpm dev
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants