Codex not able to start nodejs project

I set up two repositories (one React and one NodeJs) in Codex to test a couple of things, but I cannot make it pass the “Running Setup Scripts” stage. I have the feeling that my Setup Scripts are not correct, but I haven’t seen an example for my stack.

This is a screenshot of my react project’s terminal, looks like everything is good.

For the nodejs project the terminal it’s outputting

" Error: connect ENETUNREACH xx.xx.xx.xx:xx- Local (0.0.0.0:0) at internalConnect (node:net:1115:16) at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1522:9) at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:134:8)"

For setup scripts I have:

Nodejs Project:

npm install --legacy-peer-deps && npm run debug

React Project:

npm install --legacy-peer-deps
npm run start

Any ideas on what’s wrong?

npm run start is blocking and runs indefinitely. I’d leave this out and then instruct the agent to run this if it needs this (within the development task work) in AGENTS.md

2 Likes

Thank you so much! it is working!

2 Likes