OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: Can't install nodejs

Open xplorer990 opened this issue 1 year ago • 6 comments

Is there an existing issue for the same bug?

  • [X] I have checked the troubleshooting document at https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting
  • [X] I have checked the existing issues.

Describe the bug

despite node and npm being installed opendevin says npm is not installed and when it tries to install it nothing happens

Current Version

opendevin:0.5 WSL2 Ubuntu 22.04

Installation and Configuration

enli@LY5:~/4/OpenDevin$ export WORKSPACE_BASE=$(pwd)/workspace;
enli@LY5:~/4/OpenDevin$ docker run \
    --pull=always \
    -e SANDBOX_USER_ID=$(id -u) \
    -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
    -v $WORKSPACE_BASE:/opt/workspace_base \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 3000:3000 \
    --add-host host.docker.internal=host-gateway \
    ghcr.io/opendevin/opendevin:0.5

Model and Agent

Model: gpt-4-turbo-2024-04-09 Agent: CodeActAgent

Reproduction Steps

No response

Logs, Errors, Screenshots, and Additional Context

image image image

xplorer990 avatar May 14 '24 07:05 xplorer990

image With the latest version and agent: codeagent and gtp-4o model i get this.

xplorer990 avatar May 14 '24 07:05 xplorer990

See https://github.com/OpenDevin/OpenDevin/issues/1476 for the malformed paths issue (though that filename should be fine?)

rbren avatar May 14 '24 18:05 rbren

Node and npm need to be installed in the sandbox too. What is the task?

In step 1, it is being installed. Output is not a streaming one.

SmartManoj avatar May 15 '24 04:05 SmartManoj

@SmartManoj Currently i am running OpenDevin from source, after make build, my sandbox install but can not find nodejs.

ghcr.io/opendevin/sandbox:main

Genuifx avatar May 16 '24 03:05 Genuifx

Step 1 completed?

SmartManoj avatar May 16 '24 03:05 SmartManoj

@SmartManoj Yes, I use Conda to install the deps. It looks like the sandbox is pulled from the remote server not built by local.

Genuifx avatar May 16 '24 06:05 Genuifx

Node and npm need to be installed in the sandbox too.

@Genuifx

SmartManoj avatar May 26 '24 10:05 SmartManoj

@xplorer990 does the original issue still happen with the newer builds?

mamoodi avatar Jun 21 '24 17:06 mamoodi

Going to close this. It seems that there may be a misunderstanding. Even though you have them installed on your current system, they still need to be installed in your sandbox too. For installing them in your sandbox, try the latest 0.6.2 tag and open a new issue or re-open with more details please.

mamoodi avatar Jun 25 '24 19:06 mamoodi

Correction: "main", not "0.6.2"

tobitege avatar Jun 25 '24 19:06 tobitege