我另外的一个项目,启动容器会自动安装,但是不知道为什么我这个新项目不会,我目录结构很简单
控制台日志
oss-to-local | npm error code EAI_AGAIN
oss-to-local | npm error syscall getaddrinfo
oss-to-local | npm error errno EAI_AGAIN
oss-to-local | npm error request to https://registry.npmmirror.com/ali-oss failed, reason: getaddrinfo EAI_AGAIN registry.npmmirror.com
oss-to-local | npm error A complete log of this run can be found in: /root/.npm/_logs/2026-05-21T08_00_28_947Z-debug-0.log
oss-to-local |
oss-to-local | > sync-oss-to-local@1.0.0 sync
oss-to-local | > node index.js
oss-to-local |
oss-to-local | node:internal/modules/cjs/loader:1368
oss-to-local | throw err;
oss-to-local | ^
oss-to-local |
oss-to-local | Error: Cannot find module 'ali-oss'
oss-to-local | Require stack:
oss-to-local | - /app/index.js
oss-to-local | at Function._resolveFilename (node:internal/modules/cjs/loader:1365:15)
oss-to-local | at defaultResolveImpl (node:internal/modules/cjs/loader:1021:19)
oss-to-local | at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1026:22)
oss-to-local | at Function._load (node:internal/modules/cjs/loader:1175:37)
oss-to-local | at TracingChannel.traceSync (node:diagnostics_channel:322:14)
oss-to-local | at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
oss-to-local | at Module.require (node:internal/modules/cjs/loader:1445:12)
oss-to-local | at require (node:internal/modules/helpers:135:16)
oss-to-local | at Object.<anonymous> (/app/index.js:1:13)
oss-to-local | at Module._compile (node:internal/modules/cjs/loader:1688:14) {
oss-to-local | code: 'MODULE_NOT_FOUND',
oss-to-local | requireStack: [ '/app/index.js' ]
oss-to-local | }
oss-to-local |
oss-to-local | Node.js v22.18.0
oss-to-local | npm error code EAI_AGAIN
oss-to-local | npm error syscall getaddrinfo
oss-to-local | npm error errno EAI_AGAIN
oss-to-local | npm error request to https://registry.npmmirror.com/ali-oss failed, reason: getaddrinfo EAI_AGAIN registry.npmmirror.com
oss-to-local | npm error A complete log of this run can be found in: /root/.npm/_logs/2026-05-21T08_01_43_903Z-debug-0.log
oss-to-local |
oss-to-local | > sync-oss-to-local@1.0.0 sync
oss-to-local | > node index.js
oss-to-local |
oss-to-local | node:internal/modules/cjs/loader:1368
oss-to-local | throw err;
oss-to-local | ^
oss-to-local |
oss-to-local | Error: Cannot find module 'ali-oss'
oss-to-local | Require stack:
oss-to-local | - /app/index.js
oss-to-local | at Function._resolveFilename (node:internal/modules/cjs/loader:1365:15)
oss-to-local | at defaultResolveImpl (node:internal/modules/cjs/loader:1021:19)
oss-to-local | at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1026:22)
oss-to-local | at Function._load (node:internal/modules/cjs/loader:1175:37)
oss-to-local | at TracingChannel.traceSync (node:diagnostics_channel:322:14)
oss-to-local | at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
oss-to-local | at Module.require (node:internal/modules/cjs/loader:1445:12)
oss-to-local | at require (node:internal/modules/helpers:135:16)
oss-to-local | at Object.<anonymous> (/app/index.js:1:13)
oss-to-local | at Module._compile (node:internal/modules/cjs/loader:1688:14) {
oss-to-local | code: 'MODULE_NOT_FOUND',
oss-to-local | requireStack: [ '/app/index.js' ]
oss-to-local | }
oss-to-local |
oss-to-local | Node.js v22.18.0


