# Issue when try to upgrade 5.0.3 to 5.1.0

**URL:** <https://forum.mautic.org/t/issue-when-try-to-upgrade-5-0-3-to-5-1-0/32877>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [July 25, 2024, 3:47pm UTC](https://forum.mautic.org/t/issue-when-try-to-upgrade-5-0-3-to-5-1-0/32877 "2024-07-25T15:47:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnxl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dnxl/32/11684_2.png) [@dnxl](https://forum.mautic.org/u/dnxl)\
**Post date:** [July 25, 2024, 3:47pm UTC](https://forum.mautic.org/t/issue-when-try-to-upgrade-5-0-3-to-5-1-0/32877/1 "2024-07-25T15:47:15Z")

</div>

**Your software**  
My Mautic version is:  
My PHP version is: 8.1.27  
My Database type and version is: 10.11.7-MariaDB-1:10.11.7+maria~ubu2204

**Your problem**  
My problem is:

I am trying to upgrade mautic (following the steps here [Mautic 5 Install/Upgrade Support - Mautic Forums](https://forum.mautic.org/c/support/mautic-5-install-upgrade-support/108)) from 5.0.3 to 5.1.0, the problem is that I have an error when running:

composer create-project mautic/recommended-project:^5 html-new --no-interaction

Mautic is currently working on “public\_html” folder, the file structure is:

`/home/domain/public_html/`

These errors are showing in the log:

```auto
cat /home/domain/.npm/_logs/2024-07-25T14_53_38_525Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'ci',
1 verbose cli '--prefer-offline',
1 verbose cli '--no-audit'
1 verbose cli ]
2 info using npm@6.14.8
3 info using node@v14.15.0
4 verbose npm-session 3644663238ba5e4b
5 info prepare initializing installer
6 verbose prepare starting workers
7 verbose prepare installation prefix: /home/domain/html-new
8 verbose prepare using package-lock.json
9 verbose checkLock verifying package-lock data
10 verbose teardown shutting down workers.
11 info teardown Done in 0s
12 verbose stack TypeError: Cannot read property '@ckeditor/ckeditor5-adapter-ckfinder' of undefined
12 verbose stack at /usr/local/lib/node_modules/npm/node_modules/lock-verify/index.js:27:40
12 verbose stack at Array.forEach (<anonymous>)
12 verbose stack at /usr/local/lib/node_modules/npm/node_modules/lock-verify/index.js:25:25
13 verbose cwd /home/domain/html-new
14 verbose Linux 5.15.0-94-generic
15 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "ci" "--prefer-offline" "--no-audit"
16 verbose node v14.15.0
17 verbose npm v6.14.8
18 error Cannot read property '@ckeditor/ckeditor5-adapter-ckfinder' of undefined
19 verbose exit [1, true]

```

Steps I have tried to fix the problem:  
I have delete all the created file, try to start again, update npm and node, but the issue is still present.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![dnxl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dnxl/32/11684_2.png) [@dnxl](https://forum.mautic.org/u/dnxl)\
**Post date:** [August 24, 2024, 7:09pm UTC](https://forum.mautic.org/t/issue-when-try-to-upgrade-5-0-3-to-5-1-0/32877/2 "2024-08-24T19:09:33Z")

</div>

Any help please?

---

<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:** [August 26, 2024, 1:43pm UTC](https://forum.mautic.org/t/issue-when-try-to-upgrade-5-0-3-to-5-1-0/32877/3 "2024-08-26T13:43:18Z")

</div>

Your mautic soruce may be corrupted, try to replace the core files and run update again.

Anyway I would be interested to look into this in scope of my services, if you are interested please drop me a PM.
