-
Notifications
You must be signed in to change notification settings - Fork 52
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
Installation failure on ubuntu22.04 #19
Comments
Here is 2nd try: stulluk ~/Downloads/srt-ai (main) $ docker run -it -v $(pwd):/root/ -p3000:3000 node:21 /bin/bash
Unable to find image 'node:21' locally
21: Pulling from library/node
1b13d4e1a46e: Pull complete
1c74526957fc: Pull complete
30d855997954: Pull complete
ad5739181616: Pull complete
b2aed33d4664: Pull complete
1688fca40fa1: Pull complete
e028f1255c74: Pull complete
49b4ed55fa73: Pull complete
Digest: sha256:abc4a25c8b5a2b460f3144aabfc8941ecd7e4fb721e0b14b635e70394c1899fb
Status: Downloaded newer image for node:21
root@b5a5110fc131:/# ls
bin boot dev etc home lib lib32 lib64 libx32 media mnt opt proc root run sbin srv sys tmp usr var
root@b5a5110fc131:/# cd root/
root@b5a5110fc131:~# ls
README.md app components fonts lib next.config.js node_modules package-lock.json package.json postcss.config.js preview.png public tailwind.config.ts tsconfig.json types.ts
root@b5a5110fc131:~# npm install
up to date, audited 185 packages in 680ms
35 packages are looking for funding
run `npm fund` for details
3 moderate severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
root@b5a5110fc131:~# npm run dev
> [email protected] dev
> next dev
▲ Next.js 14.0.4
- Local: http://localhost:3000
- Environments: .env.local
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
✓ Ready in 1420ms
(node:54) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
○ Compiling / ...
✓ Compiled / in 2.6s (519 modules)
✓ Compiled /api in 214ms (501 modules)
⨯ Error: failed to pipe response
at pipeToNodeResponse (/root/node_modules/next/dist/server/pipe-readable.js:111:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async sendResponse (/root/node_modules/next/dist/server/send-response.js:40:13)
at async doRender (/root/node_modules/next/dist/server/base-server.js:1360:25)
at async cacheEntry.responseCache.get.routeKind (/root/node_modules/next/dist/server/base-server.js:1552:28)
at async DevServer.renderToResponseWithComponentsImpl (/root/node_modules/next/dist/server/base-server.js:1460:28)
at async DevServer.renderPageComponent (/root/node_modules/next/dist/server/base-server.js:1843:24)
at async DevServer.renderToResponseImpl (/root/node_modules/next/dist/server/base-server.js:1881:32)
at async DevServer.pipeImpl (/root/node_modules/next/dist/server/base-server.js:909:25)
at async NextNodeServer.handleCatchallRenderRequest (/root/node_modules/next/dist/server/next-server.js:266:17)
at async DevServer.handleRequestImpl (/root/node_modules/next/dist/server/base-server.js:805:17) {
[cause]: Error: OpenAI API returned an error
at retrieveTranslation (webpack-internal:///(rsc)/./app/api/route.ts:46:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.start (webpack-internal:///(rsc)/./app/api/route.ts:62:38)
}
|
I was facing the same issue, but everything worked fine after running it using your Docker method. Inside the Docker container, the node version (checked with "node -v") is v21.7.3, while my local environment has v12.22.12. I suspect this discrepancy in node versions might be the root of the error. |
Hi, thanks for letting me know. What do you mean by your "local environment" ? Which repository you have cloned and which docker image you have used? Can you please paste your commands as I did above , so I can retry ? |
git clone https://github.com/yazinsai/srt-ai.git
cd srt-ai
mv .env.example .env.local
docker run -it -v $(pwd):/root/ -p 3000:3000 node:21 /bin/bash
cd /root
npm install
npm run dev Everything worked fine after running the above commands. |
Here is how I tried:
What am I missing here ?
Wouldn't it be easier just to create a simple docker container with all necessary dependencies and publish it instead of tons of npm modules ?
The text was updated successfully, but these errors were encountered: