Issue when try to upgrade 5.0.3 to 5.1.0

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) 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:

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

Any help please?

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.