# Unable to install Mautic 5.0.2 with composer

**URL:** <https://forum.mautic.org/t/unable-to-install-mautic-5-0-2-with-composer/30670>\
**Category:** Product Support\
**Created:** [January 26, 2024, 6:23am UTC](https://forum.mautic.org/t/unable-to-install-mautic-5-0-2-with-composer/30670 "2024-01-26T06:23:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IndianHypnosis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/indianhypnosis/32/5510_2.png) [@IndianHypnosis](https://forum.mautic.org/u/IndianHypnosis)\
**Post date:** [January 26, 2024, 6:23am UTC](https://forum.mautic.org/t/unable-to-install-mautic-5-0-2-with-composer/30670/1 "2024-01-26T06:23:41Z")

</div>

I am unable to install mautic 5.0.2 with Composer. Please help me. I am not technically sound. Please guide me with step by step process if possible.  
My environment:

1. Canonical, Ubuntu Server Pro, 22.04 LTS
2. nginx server
3. PHP 8.0 & 8.1  
I followed this link to install:  
[Installation — Mautic Documentation 0.1 documentation](https://docs.mautic.org/en/5.x/getting_started/how_to_install_mautic.html?fbclid=IwAR1gETFAt7KSQNwtTzC97yCplvinVb1PfP_bEFFrH8COMCDAxFUe_q5Q3sI#installing-with-composer)

Facing Error 1: After using the command  
“composer create-project mautic/recommended-project:^5 mautic --no-interaction”,  
I got “npm: not found” error at the end. (Image 1)

Facing Error 2: After using the command  
“composer require mautic/helloworld-bundle”,  
I got “…your php version (8.0.30) dose not satisfy…” error (Image 2)

Facing Error 3: I changed my PHP version to 8.1 and again applied the command “composer require mautic/helloworld-bundle”,  
I got “…your php version (8.1.27) does not satisfy…” error (Image 3)

Can anyone help me?

 ![Image 1](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/32208eef4b3a4d5e22261bb98f4c6d5df13b95c9.png)  
 ![Image 2](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/40b02285f811b41234cbfa58c31d9ed681f20b92.png)  
 ![Image 3](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/21ffeae00319dfedbf8310e67806ed7b159a2f22.png)

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [January 26, 2024, 11:18am UTC](https://forum.mautic.org/t/unable-to-install-mautic-5-0-2-with-composer/30670/2 "2024-01-26T11:18:08Z")

</div>

The problem is that you do not have npm installed on your system.

Mautic requires npm during installation process to build the assets.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [January 27, 2024, 11:18pm UTC](https://forum.mautic.org/t/unable-to-install-mautic-5-0-2-with-composer/30670/3 "2024-01-27T23:18:18Z")

</div>

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