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 following README.md - on command "pnpm vckit server" #146

Open
zachzeus opened this issue Aug 15, 2023 · 3 comments
Open

Error following README.md - on command "pnpm vckit server" #146

zachzeus opened this issue Aug 15, 2023 · 3 comments

Comments

@zachzeus
Copy link
Contributor

Describe the bug
Followed the instructions on the readme and got an error when I tried to start the API server.
Error creating typeorm['DataSource']: SQLite package has not been found installed. Try to install it: npm install sqlite3 --save. While creating object from pointer: /dbConnection. While creating object from pointer: /keyManager. While creating object from pointer: /agent. While creating object from pointer: /server  ELIFECYCLE  Command failed with exit code 1.

To Reproduce
Steps to reproduce the behavior:

  1. Prerequisites of PNPM 8.6.0 and Node 18.X
  2. Started with clean git repo
  3. Ran commands
    `# Install dependencies
    pnpm install

Copy the .env.example file to .env for the demo explorer

cp packages/demo-explorer/.env.example packages/demo-explorer/.env

Build

pnpm build

Initialize the agent configuration

pnpm vckit config`
4. and then ran "pnpm vckit server"
5. and got the error above.
6. There were warnings about dependencies in the build stack-trace, but there weren't any errors.
7. Error was Sqllite not found - I tried to manually installed, but that didn't work.

Screenshots
image

Desktop (please complete the following information):

  • OS: OSx
  • Browser: N/A
  • Version 13.4.1

Additional context
Add any other context about the problem here.

@namhoang1604
Copy link
Contributor

Hi @zachzeus, the issue looks like missing the sqlite3 for the cli package. Can you provide the pnpm-lock.yaml and packages/cli/package.json files?

@zachzeus
Copy link
Contributor Author

Here you go...

issue_146.zip

@zachzeus
Copy link
Contributor Author

This issue had to do with running this on a Mac chipset and sqlite 5.0.8 doesn't have ARM compiled (and setting up compiling of 5.0.8 got hard). Updated packages/cli to use sqlite 5.1.1 helped.

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