Trying to switch Mautic 5.02 to a composer version isn’t working for me.
(mind you, I’m no composer wizard, but I’ve followed all the instructions precisely).
After running the composer create-project command, I’m getting the following exit code:
73 packages are looking for funding
runnpm fund
for detailsnpx patch-package
/var/www/ma.lexgabrees.com/htdocs-new/node_modules/patch-package/node_modules/yaml/dist/compose/composer.js:33
if (prelude[i + 1]?.[0] !== ‘#’)
^SyntaxError: Unexpected token ‘.’
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/var/www/ma.lexgabrees.com/htdocs-new/node_modules/patch-package/node_modules/yaml/dist/index.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)
Script npx patch-package handling the npx-patch-package event returned with error code 1
Script @npx-patch-package was called via post-update-cmd
Anybody have an idea ?