Skip to content

Commit 570f100

Browse files
committed
add collect's fix per madjin, add better sqlite3 rebuild instructions as it keeps coming up
1 parent 629144e commit 570f100

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

docs/docs/quickstart.md

+48
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,54 @@ pnpm start --characters="characters/trump.character.json,characters/tate.charact
167167
- Check GPU compatibility
168168
- Ensure proper environment variables are set
169169

170+
4. **Exit Status 1**
171+
If you see
172+
```
173+
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @ai16z/agent@0.0.1 start: node --loader ts-node/esm src/index.ts "--isRoot"
174+
Exit status 1
175+
ELIFECYCLE Command failed with exit code 1.
176+
```
177+
178+
You can try these steps, which aim to add `@types/node` to various parts of the project
179+
180+
```
181+
# Add dependencies to workspace root
182+
pnpm add -w -D ts-node typescript @types/node
183+
184+
# Add dependencies to the agent package specifically
185+
pnpm add -D ts-node typescript @types/node --filter "@ai16z/agent"
186+
187+
# Also add to the core package since it's needed there too
188+
pnpm add -D ts-node typescript @types/node --filter "@ai16z/eliza"
189+
190+
# First clean everything
191+
pnpm clean
192+
193+
# Install all dependencies recursively
194+
pnpm install -r
195+
196+
# Build the project
197+
pnpm build
198+
199+
# Then try to start
200+
pnpm start
201+
```
202+
5. **Better sqlite3 was compiled against a different Node.js version**
203+
If you see
204+
205+
```
206+
Error starting agents: Error: The module '.../eliza-agents/dv/eliza/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
207+
was compiled against a different Node.js version using
208+
NODE_MODULE_VERSION 131. This version of Node.js requires
209+
NODE_MODULE_VERSION 127. Please try re-compiling or re-installing
210+
```
211+
212+
You can try this, which will attempt to rebuild better-sqlite3.
213+
214+
```bash
215+
pnpm rebuild better-sqlite3
216+
```
217+
170218
## Next Steps
171219

172220
Once you have your agent running, explore:

0 commit comments

Comments
 (0)