Skip to content

[BUG] npm build error #47

@bill-ding007

Description

@bill-ding007

📋 CheckList

  • I have searched existing issues to avoid duplicates
  • I am using a recently maintained version of Coze Loop
  • I have provided all required information
  • I understand this is a bug report and not a feature request
  • I have submitted this report in English (otherwise it will not be processed)

🐛 Bug Description

build时要拉外网包,不仅慢,还老是报错

🔄 Steps to Reproduce

docker compose build 报错

✅ Expected Behavior

docker compose build 报错

❌ Actual Behavior

docker compose build 报错

🚨 Severity

None

🔧 Component

None

💻 Environment

No response

🔧 Go Environment

No response

📋 Logs

📝 Additional Context

 WARN  GET https://registry.npmjs.org/@douyinfe/semi-animation-styled/-/semi-animation-styled-2.72.3.tgz error (ERR_SOCKET_TIMEOUT). Will retry in 1 minute. 1 retries left.
225.5  ERR_SOCKET_TIMEOUT  request to https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz failed, reason: Socket timeout
225.5
225.5 FetchError: request to https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz failed, reason: Socket timeout
225.5 at ClientRequest. (/root/.rush/node-v20.13.1/pnpm-8.15.8/node_modules/pnpm/dist/pnpm.cjs:74198:18)
225.5 at ClientRequest.emit (node:events:519:28)
225.5 at TLSSocket.socketErrorListener (node:_http_client:500:9)
225.5 at TLSSocket.emit (node:events:531:35)
225.5 at emitErrorNT (node:internal/streams/destroy:169:8)
225.5 at emitErrorCloseNT (node:internal/streams/destroy:128:3)
225.5 at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
225.6 Giving up after 1 attempts
225.6
225.6
225.6 The command failed:
225.6 /cozeloop/common/temp/pnpm-local/node_modules/.bin/pnpm install --store /cozeloop/common/temp/pnpm-store --config.cacheDir=/cozeloop/common/temp/pnpm-store --config.stateDir=/cozeloop/common/temp/pnpm-store --frozen-lockfile --no-strict-peer-dependencies --config.auto-install-peers=true --config.resolutionMode=highest --config.ignoreCompatibilityDb --recursive --link-workspace-packages false
225.6 ERROR: Error: Process exited with code 1
225.6
225.6 ERROR: Process exited with code 1

failed to solve: process "/bin/sh -c sh conf/docker/build/frontend.sh" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions