eliza icon indicating copy to clipboard operation
eliza copied to clipboard

Errors on MacOS M3 - ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command "start:client" not found

Open clickbrain opened this issue 11 months ago • 4 comments

Describe the bug After running pnpm i && pnpm build && pnpm start it shows the Rest API URL and verified it is there, but when I go to new terminal window and run pnpm start:client

Get this error:  ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command "start:client" not found Did you mean "pnpm start:service:all"?

Tried running pnpm start:service:all and get this:

@ai16z/[email protected] start:service:all /Users/bradn/Documents/dev/eliza-starter pm2 start pnpm --name="all" --restart-delay=3000 --max-restarts=10 -- run start:all

sh: pm2: command not found  ELIFECYCLE  Command failed.

To Reproduce git clone https://github.com/elizaos/eliza-starter.git cd eliza-starter cp .env.example .env pnpm i && pnpm build && pnpm start New Terminal tab: pnpm start:client

Expected behavior

Run the client app and load agent

Screenshots

Additional context

clickbrain avatar Jan 07 '25 20:01 clickbrain

Hello @clickbrain! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!

github-actions[bot] avatar Jan 07 '25 20:01 github-actions[bot]

Running into the same issue on Linux. Does this work on Windows or other Mac computers using Intel or AMD chips possibly? If anyone else can test this with other hardware please share.

Steps to reproduce:

https://github.com/elizaOS/eliza?tab=readme-ov-file#-quick-start

git clone https://github.com/elizaos/eliza-starter.git
cd eliza-starter
cp .env.example .env
pnpm i && pnpm build && pnpm start

Once the agent is running, you should see the message to run "pnpm start:client" at the end. Open another terminal and move to same directory and then run below command and follow the URL to chat to your agent.

pnpm start:client

MarcusWentz avatar Jan 08 '25 06:01 MarcusWentz

I installed pm2

pnpm i pm2 -g

and got some errors with better-sqlite which seems to be resolved after running

sudo apt-get install libsqlite3-dev
npm rebuild better-sqlite3 --build-from-source

but I am still getting the client messaging error when running

pnpm start:client

even though I don't see an errors on the server side.

MarcusWentz avatar Jan 08 '25 20:01 MarcusWentz

It is possible there is an issue on the main branch.

@clickbrain

Have you tried using eliza v.0.1.7 as suggested here: https://github.com/elizaOS/eliza/issues/1552#issuecomment-2571374498 ?

MarcusWentz avatar Jan 08 '25 20:01 MarcusWentz

Hello here. Did you made to make it run ? Is ossible that Silicon not like this version listed. I mar this to need feeback.

AIFlowML avatar Jan 09 '25 15:01 AIFlowML

@clickbrain

Are you able to run the agent with GitHub repository eliza directly instead: https://github.com/elizaOS/eliza-starter/issues/64#issuecomment-2580772579 ?

Guide:

I tried again with this guide for GitHub repository eliza directly instead of eliza-starter:

https://elizaos.github.io/eliza/docs/quickstart/

Where I used the latest stable release by running:

 git checkout $(git describe --tags --abbrev=0)

Then also installed the sharp npm module globally:

pnpm install --include=optional sharp -w

When I started an agent (character c3po from the library in this case):

pnpm start --character="characters/c3po.character.json"

I was able to access the client in another terminal in the eliza path:

pnpm start:client

then view the agent model web browser interface at:

http://localhost:5173/

MarcusWentz avatar Jan 09 '25 16:01 MarcusWentz

Close because no more feedback from the user.

AIFlowML avatar Jan 12 '25 10:01 AIFlowML

Thank you! I will give that a try. Haven't been able to get back to it this week.

clickbrain avatar Jan 14 '25 21:01 clickbrain

Sadly, this does not seem to have worked. Got to the REST API bound section and then nothing happened after that. Checked local host URL for REST and it is working.

Followed your suggestions above: installed the sharp npm module globally pnpm start --character="characters/c3po.character.json" pnpm start:client - in another terminal tab

Gives me the Vite URL Loaded that in browser and see an Ezlia screen interface, but the bottom left status shows it connecting and then disconnecting over and over again.

clickbrain avatar Jan 17 '25 21:01 clickbrain

Sadly, this does not seem to have worked. Got to the REST API bound section and then nothing happened after that. Checked local host URL for REST and it is working.

Followed your suggestions above: installed the sharp npm module globally pnpm start --character="characters/c3po.character.json" pnpm start:client - in another terminal tab

Gives me the Vite URL Loaded that in browser and see an Ezlia screen interface, but the bottom left status shows it connecting and then disconnecting over and over again.

I had this too. Update last version and all should be fine.

AIFlowML avatar Jan 19 '25 23:01 AIFlowML

@AIFlowML This issue is still occurring on starter pack, but works fine on the main branch.

ballboyredditor avatar Feb 26 '25 15:02 ballboyredditor