A common npmjs.org dependency (Winston) released a bad version last Thursday that prevents node apps from starting.
Launching via Node with ca-apm-run-esm wily wrapper as ps/prod deploy
Config.startConfiguration Error : SyntaxError: Unexpected token =
/opt/app-root/src/.npm-global/lib/node_modules/ca-apm-probe/node_modules/winston/lib/winston/transports/console.js:24
_consoleLog = console.log.bind(console);
^
SyntaxError: Unexpected token =
at Object.compileFunction (vm.js:406:10)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
This is a known issue in Winston 3.14.
It is resolved in 3.14.2. The issue will no more persist with our NodeJS Agent as it will always pick latest Winston version which is 3.15.0.
If you are running the pre-release of NodeJs Agent, please contact Broadcom Support to get a compatible Agent that works in 3.14.2 Winston.