chatgpt-web-dev / chatgpt-web

A third-party ChatGPT Web UI page built with Express and Vue3, through the official OpenAI completion API. / 用 Express 和 Vue3 搭建的第三方 ChatGPT 前端页面, 基于 OpenAI 官方 completion API.
https://chatgpt-web.dev
MIT License
1.61k stars 441 forks source link

docker自己打包报错 #403

Closed 02000823 closed 8 months ago

02000823 commented 8 months ago

0 131.6  ETIMEDOUT  request to https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz failed, reason:

0 131.6

0 131.6 FetchError: request to https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz failed, reason:

0 131.6 at ClientRequest. (/usr/local/lib/node_modules/pnpm/dist/pnpm.cjs:73746:18)

0 131.6 at ClientRequest.emit (node:events:514:28)

0 131.6 at TLSSocket.socketErrorListener (node:_http_client:495:9)

0 131.6 at TLSSocket.emit (node:events:526:35)

0 131.6 at emitErrorNT (node:internal/streams/destroy:151:8)

0 131.6 at emitErrorCloseNT (node:internal/streams/destroy:116:3)

0 131.6 at process.processTicksAndRejections (node:internal/process/task_queues:82:21)


Dockerfile:46

44 | COPY /service/pnpm-lock.yaml /app 45 |
46 | >>> RUN pnpm install --production && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/* 47 |
48 | COPY /service /app

ERROR: failed to solve: process "/bin/sh -c pnpm install --production && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/*" did not complete successfully: exit code: 1

Kerwin1202 commented 8 months ago

用代理吧,或者换个镜像源 再或者 更新下 pnpm ,我前几天 pnpm 也不行,更新了下就好了

02000823 commented 8 months ago

好的