Missing Node Modules and Sass Build Errors Breaking Mautic 7.2.2 Installations

A new Mautic community forum topic is shaking things up for anyone trying to install or upgrade to Mautic version 7.2.2. The gist: the composer install process is failing, leaving critical frontend assets missing, triggering errors about missing Sass CSS files and JavaScript libraries. The result? Site offline messages, 504 gateway timeouts, and a painful dead end for admins trying to get their instance up and running.

Specifically, the errors point to missing compiled CSS files that should be generated by running php bin/console sass:build. Unfortunately, running this command either fails or leads to a timeout. Even after manually copying over /var/sass and /var/dart-sass folders from a zip download, the install still hits a wall because essential files in node_modules—such as mousetrap.js, jquery.js, and others—are not present.

Why does this matter? Usually, the node_modules directory is populated automatically by running npm install or is included in the project dependencies managed via composer scripts. But for Mautic 7.2.2, the installer or the zip archive apparently excludes this directory entirely. This leaves users frustrated, facing frontend asset build errors and broken UI once installed.

Interestingly, this is not an isolated incident on the forums, although official Mautic GitHub searches are currently hampered by technical issues and lack clear related open issues or fixes. So, if you’re attempting a fresh install or upgrade to 7.2.2 and face these errors, you’re likely hitting a bug or workflow gap in the release or installation instructions.

What’s the practical takeaway? If you don’t want to fight this battle, it might be worth holding off on 7.2.2 until a patch or guidance drops from the Mautic core team or community contributors. Alternatively, consider manual workarounds: manually installing npm dependencies or using prior stable Mautic versions that don’t have this asset build problem.

At Mailertizer, this kind of build and install headache is exactly why we offer Mautic as a hosted service, so marketers can skip these technical rabbit holes and get straight to the marketing automation magic.

For those stuck troubleshooting or wanting to follow the full community discussion, check out the original forum thread here.

Share the Post: