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

Can't start on macOS #2360

Open
ziodave opened this issue Jan 16, 2025 · 6 comments
Open

Can't start on macOS #2360

ziodave opened this issue Jan 16, 2025 · 6 comments

Comments

@ziodave
Copy link

ziodave commented Jan 16, 2025

Describe the bug

I followed the Quick Start but it doesn't work for me, I get the following error:

Error: Could not locate the bindings file. Tried:
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build/Debug/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build/Release/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/out/Debug/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/Debug/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/out/Release/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/Release/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build/default/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/compiled/23.3.0/darwin/arm64/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/addon-build/release/install-root/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/addon-build/default/install-root/better_sqlite3.node
 → ./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/binding/node-v131-darwin-arm64/better_sqlite3.node
    at bindings (./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/bindings/bindings.js:126:9)
    at new Database (./eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/database.js:48:64)
    at initializeDatabase (file://./eliza-starter/src/database/index.ts:15:46)
    at startAgent (file://./eliza-starter/src/index.ts:53:20)
    at startAgents (file://./eliza-starter/src/index.ts:98:19)
    at file://./eliza-starter/src/index.ts:124:1 {
  tries: [
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build/Debug/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build/Release/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/out/Debug/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/Debug/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/out/Release/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/Release/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build/default/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/compiled/23.3.0/darwin/arm64/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/addon-build/release/install-root/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/addon-build/default/install-root/better_sqlite3.node',
    './eliza-starter/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/binding/node-v131-darwin-arm64/better_sqlite3.node'
  ]
}

To Reproduce

Follow the Quick Start on macOS 15.2.

Expected behavior

Things to work nicely.

@ziodave ziodave added the bug Something isn't working label Jan 16, 2025
Copy link
Contributor

Hello @ziodave! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

@lincheoll
Copy link
Contributor

you tried this??

image

@ziodave
Copy link
Author

ziodave commented Jan 16, 2025

Hello,

Yes, pnpm rebuild better-sqlite3 doesn't yield anything. Removing node_modules and pruning the pnpm store doesn't solve.

I am using:

  • node v23.3.0
  • pnpm v10.0.0 (using node v23.3.0)

I am not getting any error about the NODE_MODULE_VERSION.

@bckcolin
Copy link

I have the same problem.

@bckcolin
Copy link

I try to run pnpm add better-sqlite3@latest --force and npm rebuild better-sqlite3. It is ok now.

@AIFlowML AIFlowML added Need Feedback and removed bug Something isn't working labels Jan 16, 2025
@AIFlowML
Copy link
Collaborator

@ziodave @bckcolin

I can run on apple silicon so we can debug this.
better-sqlite library is sensitive to some injected permissions at the install.
The add + force rebuild can help for sure.
Let me know if you solved.

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

No branches or pull requests

4 participants