Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node and npm missing #71

Open
sarfraznawaz2005 opened this issue Jul 25, 2024 · 0 comments
Open

node and npm missing #71

sarfraznawaz2005 opened this issue Jul 25, 2024 · 0 comments

Comments

@sarfraznawaz2005
Copy link

sarfraznawaz2005 commented Jul 25, 2024

I am on Windows 11 with docker desktop installed and was able to start Codel with:

docker run -e OPEN_AI_KEY=sk-proj...... -e OPEN_AI_MODEL=gpt-4o-mini -e OLLAMA_MODEL=llama2 -p 3000:8080 -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/semanser/codel:latest

When I gave it a prompt regarding reactjs app project, it gave:

$ mkdir AI-Tips && cd AI-Tips && npx create-react-app .

sh: 1: npx: not found

$ apt install -y npm

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package npm

$ apt install -y nodejs

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package nodejs

image

I have also hyper and WSL setup with Ubuntu 22.04. I am new to docker and stuff, maybe I am missing something?

Here are logs:

[GIN] 2024/07/25 - 14:04:01 | 200 |   55.924683ms |      172.17.0.1 | POST     "/graphql"
2024/07/25 14:04:03 Spawning container tauri-apps/tauri:latest "codel-terminal-2"
2024/07/25 14:04:03 Image tauri-apps/tauri:latest found locally: false
2024/07/25 14:04:03 Pulling image tauri-apps/tauri:latest...
2024/07/25 14:04:05 Error pulling image: Error response from daemon: pull access denied for tauri-apps/tauri, repository does not exist or may require 'docker login'. Using default image debian:latest
2024/07/25 14:04:05 Creating container codel-terminal-2...
2024/07/25 14:04:06 Container codel-terminal-2 created
2024/07/25 14:04:06 Container codel-terminal-2 started
2024/07/25 14:04:06 Getting next task
2024/07/25 14:04:08 Command 9 added to the queue 2
2024/07/25 14:04:08 Waiting for a task
2024/07/25 14:04:08 Processing command 9 of type ask
2024/07/25 14:04:08 Waiting for a task
2024/07/25 14:04:44 Command 10 added to the queue 2
2024/07/25 14:04:44 Processing command 10 of type input
[GIN] 2024/07/25 - 14:04:44 | 200 |     9.06449ms |      172.17.0.1 | POST     "/graphql"
2024/07/25 14:04:44 Getting next task
2024/07/25 14:04:46 Command 11 added to the queue 2
2024/07/25 14:04:46 Waiting for a task
2024/07/25 14:04:46 Processing command 11 of type terminal
2024/07/25 14:04:46 Getting next task
2024/07/25 14:04:50 Command 12 added to the queue 2
2024/07/25 14:04:50 Waiting for a task
2024/07/25 14:04:50 Processing command 12 of type terminal
2024/07/25 14:04:50 Getting next task
2024/07/25 14:04:51 Command 13 added to the queue 2
2024/07/25 14:04:51 Waiting for a task
2024/07/25 14:04:51 Processing command 13 of type terminal
2024/07/25 14:04:51 Getting next task
2024/07/25 14:04:53 Command 14 added to the queue 2
2024/07/25 14:04:53 Waiting for a task
2024/07/25 14:04:53 Processing command 14 of type browser
2024/07/25 14:04:53 Trying to get content from https://nodejs.org/en/download/
2024/07/25 14:04:53 failed to process browser: failed to get content: error loading page: error resolving url: Get "http://127.0.0.1:9222/json/version": dial tcp 127.0.0.1:9222: connect: connection refused
2024/07/25 14:04:53 Waiting for a task

Please help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant