elizaOSのeliza(Solana)のチュートリアルでpnpm start characterするとError

現象

以下チュートリアルを実行中に以下のエラー。
eliza Quickstart Guide

% pnpm start --character="characters/trump.character.json"

 WARN  Unsupported engine: wanted: {"node":"23.3.0"} (current: {"node":"v23.0.0","pnpm":"9.15.2"})

> eliza@ start /Users/256hax/Desktop/tmp/eliza
> pnpm --filter "@elizaos/agent" start --isRoot "--character=characters/trump.character.json"

.                                        |  WARN  Unsupported engine: wanted: {"node":"23.3.0"} (current: {"node":"v23.0.0","pnpm":"9.14.4"})
docs                                     |  WARN  Unsupported engine: wanted: {"node":"23.3.0"} (current: {"node":"v23.0.0","pnpm":"9.14.4"})

> @elizaos/agent@0.1.7-alpha.2 start /Users/256hax/Desktop/tmp/eliza/agent
> node --loader ts-node/esm src/index.ts "--isRoot" "--character=characters/trump.character.json"

(node:4873) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:4873) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
[ElizaLogger] Initializing with:
            isNode: true
            verbose: false
            VERBOSE env: undefined
            NODE_ENV: undefined

 ℹ INFORMATIONS
   Loading embedding settings: 
   {"USE_OPENAI_EMBEDDING":"","USE_OLLAMA_EMBEDDING":"","OLLAMA_EMBEDDING_MODEL":"mxbai-embed-large"} 

 ℹ INFORMATIONS
   Loading character settings: 
   {"ARGV":["/Users/256hax/.nvm/versions/node/v23.0.0/bin/node","/Users/256hax/Desktop/tmp/eliza/agent/src/index.ts","--isRoot","--character=characters/trump.character.json"],"CHARACTER_ARG":"--character=characters/trump.character.json","CWD":"/Users/256hax/Desktop/tmp/eliza/agent"} 

Loaded .env file from: /Users/256hax/Desktop/tmp/eliza/.env
 ℹ INFORMATIONS
   Parsed settings: 
   {"USE_OPENAI_EMBEDDING":"","USE_OPENAI_EMBEDDING_TYPE":"string","USE_OLLAMA_EMBEDDING":"","USE_OLLAMA_EMBEDDING_TYPE":"string","OLLAMA_EMBEDDING_MODEL":"mxbai-embed-large"} 

using deprecated parameters for the initialization function; pass a single object instead
(node:4873) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
 ["◎ DirectClient constructor"] 

 ℹ INFORMATIONS
   Trying paths: 
   [{"path":"characters/trump.character.json","exists":false},{"path":"/Users/256hax/Desktop/tmp/eliza/agent/characters/trump.character.json","exists":false},{"path":"/Users/256hax/Desktop/tmp/eliza/agent/agent/characters/trump.character.json","exists":false},{"path":"/Users/256hax/Desktop/tmp/eliza/agent/src/characters/trump.character.json","exists":false},{"path":"/Users/256hax/Desktop/tmp/eliza/agent/src/characters/trump.character.json","exists":false},{"path":"/Users/256hax/Desktop/tmp/eliza/agent/characters/trump.character.json","exists":false},{"path":"/Users/256hax/Desktop/tmp/eliza/characters/trump.character.json","exists":true}] 

 ℹ INFORMATIONS
   Plugins are:  
   [] 

 ["ℹ Successfully loaded character from: /Users/256hax/Desktop/tmp/eliza/characters/trump.character.json"] 

 ["◎ sqlite-vec extensions loaded successfully."] 

 ["ℹ Using Database Cache..."] 

 ✓ SUCCESS
   SUCCESS 
   Creating runtime for character 
   trump 

 ℹ INFORMATIONS
   Initializing AgentRuntime with options: 
   {"character":"trump","modelProvider":"llama_local","characterModelProvider":"llama_local"} 

 ✓ SUCCESS
   Agent ID 
   e0e10e6f-ff2b-0d4c-8011-1fc1eee7cb32 

 ["ℹ Setting model provider..."] 

 ℹ INFORMATIONS
   Model Provider Selection: 
   {"characterModelProvider":"llama_local","optsModelProvider":"llama_local","finalSelection":"llama_local"} 

 ℹ INFORMATIONS
   Selected model provider: 
   llama_local 

 ℹ INFORMATIONS
   Selected image model provider: 
   llama_local 

 ["✓ Registering action: CONTINUE"] 

 ["✓ Registering action: FOLLOW_ROOM"] 

 ["✓ Registering action: UNFOLLOW_ROOM"] 

 ["✓ Registering action: IGNORE"] 

 ["✓ Registering action: NONE"] 

 ["✓ Registering action: MUTE_ROOM"] 

 ["✓ Registering action: UNMUTE_ROOM"] 

 ["✓ Registering action: DESCRIBE_IMAGE"] 

 ◎ LOGS
   Registering service: 
   browser 

 ["✓ Service browser registered successfully"] 

 ◎ LOGS
   Registering service: 
   image_description 

 ["✓ Service image_description registered successfully"] 

 ◎ LOGS
   Registering service: 
   text_generation 

 ["✓ Service text_generation registered successfully"] 

 ◎ LOGS
   Registering service: 
   pdf 

 ["✓ Service pdf registered successfully"] 

 ◎ LOGS
   Registering service: 
   speech_generation 

 ["✓ Service speech_generation registered successfully"] 

 ◎ LOGS
   Registering service: 
   transcription 

 ["✓ Service transcription registered successfully"] 

 ◎ LOGS
   Registering service: 
   video 

 ["✓ Service video registered successfully"] 

 ◎ LOGS
   Registering service: 
   aws_s3 

 ["✓ Service aws_s3 registered successfully"] 

 ["✓ Service browser initialized successfully"] 

 ["◎ Initializing ImageDescriptionService"] 

 ["✓ Service image_description initialized successfully"] 

 ["ℹ Initializing LlamaService..."] 

 ["✓ Service text_generation initialized successfully"] 

 ["✓ Service pdf initialized successfully"] 

 ["✓ Service speech_generation initialized successfully"] 

 ["✓ Service transcription initialized successfully"] 

 ["✓ Service video initialized successfully"] 

Initializing AwsS3Service
 ["✓ Service aws_s3 initialized successfully"] 

 ["◎ Initializing ImageDescriptionService"] 

 ["ℹ Initializing LlamaService..."] 

Initializing AwsS3Service
 ℹ INFORMATIONS
   Processing knowledge for  
   trump 
    -  
   saw what really happened in Minneapolis 2020 

 ◎ LOGS
   Creating Memory 
   8f688e68-9fad-0314-957b-1105669a3440 
   saw what really happened in Minneapolis 2020 

Downloading fast-bge-small-en-v1.5 [====================] 100% 0.0s
 ["⚠ Local embedding not supported in browser, falling back to remote embedding"] 

 ⚠ WARNINGS
   Local embedding failed, falling back to remote 
   {} 

 ⛔ ERRORS
   Error starting agent for character trump: 
   {} 

 ["⛔ TypeError: Cannot read properties of undefined (reading 'endsWith')"] 

 ⛔ ERRORS
   Error starting agents: 
   {} 

 ["◎ Run `pnpm start:client` to start the client and visit the outputted URL (http://localhost:5173) to chat with your agents. When running multiple agents, use client with different port `SERVER_PORT=3001 pnpm start:client`"] 

 ["✓ REST API bound to 0.0.0.0:3000. If running locally, access it at http://localhost:3000."] 

^C ["◎ Received shutdown signal, closing server..."] 

 ["✓ Server closed successfully"] 

ファイル

.env

XAI_MODEL=llama3.2

trump.character.json

    "modelProvider": "llama_local",

原因

node 23.0.0を使っていたが、elizaの最新だと対象外だった。node 23.3.0がサポート対象になっている。
(エラー内容と原因が異なっていたので原因特定に時間かかった)

対応

% nvm install 23.3.0
% nvm use 23.3.0
% pnpm start --character="characters/trump.character.json"