SAP Knowledge Base Article - Preview

3192157 - Smartedit build fails with "Cannot read property 'some' of undefined"

Symptom

When performing a build from Commerce Cloud in the Public Cloud, the build fails with below error (the same build may have been previously working prior to 14-Mar-2022):

2022-04-11 07:01:26,093 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec] > webdriver-manager update
(...)
2022-04-11 07:01:27,095 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]
2022-04-11 07:01:27,095 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec] > npmancillary@0.0.0 postinstall /opt/workspace/build/commerce-suite/hybris/bin/ext-content/npmancillary/resources/npm
2022-04-11 07:01:27,095 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec] > clean-npm-tmp
2022-04-11 07:01:27,095 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec] 
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec] /opt/workspace/build/commerce-suite/hybris/bin/ext-content/npmancillary/resources/npm/node_modules/clean-npm-tmp/clean.js:12
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]   list.some(function (item) {
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]        ^
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec] 
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec] TypeError: Cannot read property 'some' of undefined
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]     at getInfo (/opt/workspace/build/commerce-suite/hybris/bin/ext-content/npmancillary/resources/npm/node_modules/clean-npm-tmp/clean.js:12:8)
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]     at /opt/workspace/build/commerce-suite/hybris/bin/ext-content/npmancillary/resources/npm/node_modules/clean-npm-tmp/clean.js:43:14
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]     at handler (/opt/workspace/build/commerce-suite/hybris/bin/ext-content/npmancillary/resources/npm/node_modules/clean-npm-tmp/ps-list.js:66:14)
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]     at ChildProcess.exithandler (child_process.js:301:5)
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]     at ChildProcess.emit (events.js:198:13)
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]     at maybeClose (internal/child_process.js:982:16)
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]     at Socket.stream.socket.on (internal/child_process.js:389:11)
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]     at Socket.emit (events.js:198:13)
2022-04-11 07:01:27,188 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec]     at Pipe._handle.close (net.js:607:12)
2022-04-11 07:01:27,247 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec] npm ERR! code ELIFECYCLE
2022-04-11 07:01:27,247 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec] npm ERR! errno 1
2022-04-11 07:01:27,247 INFO d.h.c.e.Executor [Thread-50] stdout:      [exec] npm ERR! npmancillary@0.0.0 postinstall: `clean-npm-tmp`



Read more...

Environment

Commerce Cloud in the Public Cloud

Product

SAP Commerce Cloud 1808 ; SAP Commerce Cloud 1811 ; SAP Commerce Cloud 6.7

Keywords

KBA , CEC-HCS-CCAZ-BUILD , Environment builds , CEC-SCC-COM-SEDIT , SmartEdit , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.