# Can Mautic run (not install) on a server without NPM?

**URL:** <https://forum.mautic.org/t/can-mautic-run-not-install-on-a-server-without-npm/30770>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [February 3, 2024, 4:36am UTC](https://forum.mautic.org/t/can-mautic-run-not-install-on-a-server-without-npm/30770 "2024-02-03T04:36:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris76](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris76/32/522_2.png) [@Chris76](https://forum.mautic.org/u/Chris76)\
**Post date:** [February 3, 2024, 4:36am UTC](https://forum.mautic.org/t/can-mautic-run-not-install-on-a-server-without-npm/30770/1 "2024-02-03T04:36:19Z")

</div>

**Your software**  
My Mautic version is: 5  
My PHP version is: 8.1  
My Database type and version is: MySQL 8

**Your problem**  
My problem is:  
I would not like to setup NPM on my webserver if it can be avoided.

Now, for the installation Mautic required NPM.  
For running it as well?  
Is it a feasable workaround to install it on a local virtual environment and then rsync everything to the webhosting environment?

When will the next issues arise, without NPM installed?  
The next upgrade?

---

<div class="post-metadata">

**Author:** ![astrylis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/astrylis/32/6421_2.png) [@astrylis](https://forum.mautic.org/u/astrylis)\
**Post date:** [February 9, 2024, 8:21am UTC](https://forum.mautic.org/t/can-mautic-run-not-install-on-a-server-without-npm/30770/2 "2024-02-09T08:21:40Z")

</div>

We do not run npm on our production server, I build the necessary file locally with npm and then push to production. This will allow me to run grapesjs for the page and email builder without issue. It’s not documented in Mautic on how to do this (it is on my list to provide that documentation tho when I have time).

_disclaimer_  
Our setup might be very different from yours. I am part of a team of two developers who looks after Mautic for the company I work for so we have the knowledge on doing this.

---

<div class="post-metadata">

**Author:** ![Chris76](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris76/32/522_2.png) [@Chris76](https://forum.mautic.org/u/Chris76)\
**Post date:** [February 9, 2024, 9:12am UTC](https://forum.mautic.org/t/can-mautic-run-not-install-on-a-server-without-npm/30770/3 "2024-02-09T09:12:09Z")

</div>

I see.  
Thanks for the reply.

How do you do updates then, in case there are DB updates required?  
Copy a dump from live to staging, build on staging, deploy code & DB back to live and all that with a little down time?

---

<div class="post-metadata">

**Author:** ![astrylis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/astrylis/32/6421_2.png) [@astrylis](https://forum.mautic.org/u/astrylis)\
**Post date:** [February 9, 2024, 11:05am UTC](https://forum.mautic.org/t/can-mautic-run-not-install-on-a-server-without-npm/30770/4 "2024-02-09T11:05:09Z")

</div>

We handle mautic upgrades differently as we have some core code modified to suit the company needs. But basically we update locally, put our own changes back in push the code to the staging server, run doctrine schema update and then test extensively.

Worked really well when we went from v3 to v4. Then its rinse and repeat for production and we only went into maintenance mode for about 30mins or so.

---

<div class="post-metadata">

**Author:** ![crozilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/crozilla/32/2054_2.png) [@crozilla](https://forum.mautic.org/u/crozilla)\
**Post date:** [March 19, 2024, 9:34pm UTC](https://forum.mautic.org/t/can-mautic-run-not-install-on-a-server-without-npm/30770/5 "2024-03-19T21:34:25Z")

</div>

I upgraded to Mautic v5.0.3 on shared hosting and get errors that apparently only “NPM” can fix. I cannot install NPM nor NodeJS.

Is there no easier way to get the necessary files than to install an entire local MAMP setup, NPM, and Mautic just to create a few files–then copy/paste them to my live instance? Seems wonky. Am I missing something?

---

<div class="post-metadata">

**Author:** ![crozilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/crozilla/32/2054_2.png) [@crozilla](https://forum.mautic.org/u/crozilla)\
**Post date:** [April 1, 2024, 2:38am UTC](https://forum.mautic.org/t/can-mautic-run-not-install-on-a-server-without-npm/30770/6 "2024-04-01T02:38:09Z")

</div>

Turns out, my webhost WILL let me install NPM…but still, why should anyone have to?
