Can't go next step in installation process

Your software
My Mautic version is: 5.0.4
My PHP version is: 8.1.10
My Database type and version is: mysql Ver 8.0.30 for Win64 on x86_64 (MySQL Community Server - GPL)

Your problem
My problem is: When run the installer on browser (https://mautic.test/installer) can’t go to the next step, the button don’t work.

These errors are showing in the log:
Browser console log:

Uncaught SyntaxError: Invalid or unexpected token (at libraries.js?v4fd533b2:6295:318)
Uncaught ReferenceError: jQuery is not defined
    at app.js?v4fd533b2:1:30
 Uncaught TypeError: mQuery is not a function
    at Object.showWaitMessage (install.js?v4fd533b2:6:13)
    at HTMLButtonElement.onclick (installer:157:18)

When run composer install i see this, and i think this is the problem:

> mautic@0.0.0 postinstall
> node_modules/modernizr/bin/modernizr -c modernizr-config.json -d node_modules/modernizr/modernizr-mautic-dist.js & npm run build

"node_modules" is not recognized as an internal or external command,
program or executable batch file.

Steps I have tried to fix the problem:
I tried tu run node_modules/modernizr/bin/modernizr -c modernizr-config.json -d node_modules/modernizr/modernizr-mautic-dist.js and npm run build indeppendently but samme problem.

Any ideas to solve the error?

Thanks,

I solve the problem changing postinstall script in package.json . This wokr for me:

"postinstall": "node node_modules/modernizr/bin/modernizr -c modernizr-config.json -d node_modules/modernizr/modernizr-mautic-dist.js & npm run build"

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.