Troubleshooting
Find your symptom, apply the fix, and run the step again. Always run npm run ... from the main multimodal-ai-labs folder.
Setup and environment
| Symptom |
Likely cause |
Fix |
node: command not found |
Node.js isn't installed, or the terminal was open before you installed it |
Install the LTS version from nodejs.org, then open a new terminal |
npm install fails on onnxruntime-node |
It tried to download an optional GPU add-on |
Check .npmrc is in the folder (it contains onnxruntime-node-install-cuda=skip), then run npm install again |
npm install fails on sharp |
A corporate proxy blocked its download |
Run npm install on a hotspot, or ask IT to allow github.com downloads |
'tsx' is not recognized or Cannot find module |
npm install didn't finish, or you're in the wrong folder |
cd to the main folder and run npm install again |
ENOENT: no such file or directory, data/... |
The command ran from inside labs/ |
cd .. back to the main folder |
| Node version warning |
Node older than 20 |
Install Node 22 LTS |
API keys and models
| Symptom |
Likely cause |
Fix |
No API key found |
.env missing or key empty |
Copy .env.example to .env and add one key. Check it isn't saved as .env.txt |
401 or authentication error |
Wrong or expired key |
Check the key for typos or spaces; ask your trainer for a new one |
404 or model not found |
The default model name has changed |
Set the current name in .env (ANTHROPIC_MODEL=, GEMINI_MODEL= or OPENAI_MODEL=); ask your trainer |
429 or rate-limit errors |
Too many calls at once on a shared key |
Wait 30 seconds and run the step again |
ZodError from askJson |
The model's JSON didn't match the schema twice |
Run the step again; try a stronger model if it keeps happening |
| The answer never changes |
You're getting a saved answer |
Change the prompt, delete data/_cache, or set LLM_CACHE=0 in .env |
Downloads and network
| Symptom |
Likely cause |
Fix |
| Model download hangs or fails |
Office network blocks huggingface.co |
Use a phone hotspot and run npm run lab0 -- 5 once |
| Connection errors on every call |
Office network blocks the provider's website |
Ask IT to allow it, or use a hotspot |
| The first Lab 4 step is slow |
CLIP loading on your laptop's processor |
Normal; it's faster on the next run |
Lab-specific
| Symptom |
Lab |
Fix |
No recording found |
Lab 3 |
Run npm run make-audio (Mac and Windows), or record data/meeting_script.txt on your phone and save it as data/meeting.m4a |
Local Whisper needs a .wav file and ffmpeg-static isn't installed |
Lab 3 |
Run npm install ffmpeg-static (it converts .m4a/.mp3 to WAV), or save your recording as .wav |
| Transcription is very slow |
Lab 3 |
Add LOCAL_WHISPER_MODEL=Xenova/whisper-base to .env (or whisper-tiny), or use transcribe(file, "openai") |
make-audio fails on Linux |
Setup |
Linux has no built-in voice. Record the script on your phone instead |
The web chat won't start: EADDRINUSE |
Capstone |
Port 3000 is busy. Run PORT=3001 npm run app (Windows PowerShell: $env:PORT=3001; npm run app) |
ReferenceError: ... is not defined in your own step |
Any |
A helper isn't imported. Add it to the import { ... } line at the top of the lab file |
| Red squiggles in VS Code, but the step runs |
Any |
Fine: tsx runs the file even when the editor shows a type warning. Hover to see what it suggests |
Info
Still stuck after two tries? Raise your hand or pair with a neighbour. Don't lose more than five minutes to setup during a lab; you can follow along on the trainer's screen and catch up later.