开发者社区 > 云效DevOps > 正文

云效node 编译时没有使用根目录的.npmrc文件,导致不能下载私有库,编译失败,怎么解决?

云效node 编译时没有使用根目录的.npmrc文件,导致不能下载私有库,编译失败,怎么解决?https://flow.aliyun.com/pipelines/1652558/current
[08:24:57] [User Command] + cat .npmrc
[08:24:57] @saber:registry=https://center.javablade.com/api/packages/blade/npm/
[08:24:57] //center.javablade.com/api/packages/blade/npm/:_authToken=9f74c92c06ed857f8d1b70e8ba260b32850ba
[08:24:57]
[08:24:57] @nutflow:registry=https://git.nutflow.vip/api/packages/blade-workflow/npm/
[08:24:57] //git.nutflow.vip/api/packages/blade-workflow/npm/:_authToken=15d002ef629f7960cea2e042b4c5dc66c6+ yarn install
[08:26:40] <--- Last few GCs --->
[08:26:40]
[08:26:40] [1184:0x5b479e0] 62018 ms: Scavenge (reduce) 2041.7 (2081.0) -> 2041.1 (2081.3) MB, 3.7 / 0.0 ms (average mu = 0.200, current mu = 0.120) allocation failure
[08:26:40] [1184:0x5b479e0] 62081 ms: Scavenge (reduce) 2041.9 (2081.3) -> 2041.3 (2081.8) MB, 3.2 / 0.0 ms (average mu = 0.200, current mu = 0.120) allocation failure
[08:26:40] [1184:0x5b479e0] 62162 ms: Scavenge (reduce) 2042.3 (2081.8) -> 2041.7 (2082.0) MB, 4.0 / 0.0 ms (average mu = 0.200, current mu = 0.120) allocation failure
[08:26:40]
[08:26:40]
[08:26:40] <--- JS stacktrace --->
[08:26:40]
[08:26:40] FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
[08:26:40] 1: 0xb02d90 node::Abort() [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:40] 2: 0xa18123 node::FatalError(char const, char const) [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:40] 3: 0xceb85e v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:40] 4: 0xcebbd7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:40] 5: 0xeb55b5 [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:40] 6: 0xeb60a4 [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:40] 7: 0xec4517 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:40] 8: 0xec78cc v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:40] 9: 0xe8a1ec v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:40] 10: 0x11f70a6 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long, v8::internal::Isolate) [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:40] 11: 0x15cdf39 [/root/.nvm/versions/node/v16.8.0/bin/node]
[08:26:50] error Command failed with signal "SIGABRT".
[08:26:50] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[08:26:50] [ERROR] BUILD ERROR
[08:26:50] [ERROR] 155599595
[08:26:50] [ERROR] 1

展开
收起
三分钟热度的鱼 2023-09-27 13:45:06 313 0
1 条回答
写回答
取消 提交回答

云效,企业级一站式研发协同平台,数十万企业都在用。支持公共云、专有云和混合云多种部署形态,通过云原生新技术和研发新模式,助力创新创业和数字化转型企业快速实现研发敏捷和组织敏捷,打造“双敏”组织,实现多倍效能提升。

热门讨论

热门文章

相关电子书

更多
探究 Node.js 的服务端之路 立即下载
个推微服务实践 基于OpenResty 和Node.js 立即下载
沪江基于Node.js大规模应用实践 立即下载