Can npm modules be deployed on fortrabbit as easily as composer packages?

Has anyone successfully deployed npm modules on fortrabbit? Attempts using SSH npm commands, fortrabbit.yml events, and composer extensions have failed—does fortrabbit officially support npm?

In my personal experience, deploying npm modules on fortrabbit isn’t as straightforward as using composer packages. I encountered unexpected issues when trying to run npm scripts directly on the server. The fortrabbit environment is optimized for PHP projects and composer, so even though it’s possible to install npm modules, it often requires workarounds. For my project, I set up a build process that ran locally, compiled assets, and then deployed the final output to fortrabbit. This approach was more reliable and avoided inconsistencies during deployment.