System Information
- Strapi Version: v4.25.11 to v5.0.0
- Operating System: Ubuntu 22.04.4
- Database: Mysql 8.2
- Node Version: v18.20.4
- NPM Version: 10.8.2
- Yarn Version:
Hello - I am trying to update to v5.0 on Ubuntu. I am having the error below:
Any advice or fixes to the new GA code would be appreciated. Thanks
I am not very well versed in Node/NPM builds *& package installs.
Output below.
Thanks a lot in advance.
cmsadmin@cms-test-vm:~/cms-prod-project$ npx @strapi/upgrade minor
Need to install the following packages:
@strapi/upgrade@5.0.0
Ok to proceed? (y) y
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
[WARN] [2024-09-24T14:50:37.062Z] Please make sure youβve created a backup of your codebase and files before upgrading
[INFO] [2024-09-24T14:50:37.636Z] Upgrading from v4.25.8 to v4.25.11
[INFO] [2024-09-24T14:50:37.642Z] (1/4) Checking requirementβ¦
[WARN] [2024-09-24T14:50:37.773Z] Repository is not clean. Please commit or stash any changes before upgrading
Ignore optional requirement βREQUIRE_GIT_CLEAN_REPOSITORYβ ? β¦ yes
[INFO] [2024-09-24T14:50:53.378Z] (2/4) Applying the latest code modificationsβ¦
[INFO] [2024-09-24T14:50:53.393Z] (3/4) Upgrading Strapi dependenciesβ¦
[INFO] [2024-09-24T14:50:53.400Z] (4/4) Installing dependenciesβ¦
added 17 packages, removed 3 packages, changed 49 packages, and audited 1457 packages in 1m
181 packages are looking for funding
run npm fund
for details
19 vulnerabilities (13 moderate, 6 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit
for details.
[INFO] [2024-09-24T14:52:10.472Z] Completed in 93.407s
cmsadmin@cms-test-vm:~/cms-prod-project$ npx @strapi/upgrade minor
[WARN] [2024-09-24T14:52:54.696Z] Please make sure youβve created a backup of your codebase and files before upgrading
[ERROR] [2024-09-24T14:52:55.150Z] Couldnβt find a matching version in the NPM registry for βminorβ
[WARN] [2024-09-24T14:53:54.841Z] Please make sure youβve created a backup of your codebase and files before upgrading
[INFO] [2024-09-24T14:53:55.310Z] Upgrading from v4.25.11 to v5.0.0
[INFO] [2024-09-24T14:53:55.316Z] (1/4) Checking requirementβ¦
[WARN] [2024-09-24T14:53:55.390Z] Repository is not clean. Please commit or stash any changes before upgrading
Ignore optional requirement βREQUIRE_GIT_CLEAN_REPOSITORYβ ? β¦ yes
[INFO] [2024-09-24T14:53:59.796Z] (2/4) Applying the latest code modificationsβ¦
ββββββ¬ββββββββββ¬βββββββ¬βββββββββββββββββββββββββββββββββββββββββ¬βββββββββββ¬ββββββββββββ¬ββββββββββββββββββββββ
β NΒ° β Version β Kind β Name β Affected β Unchanged β Duration β
ββββββΌββββββββββΌβββββββΌβββββββββββββββββββββββββββββββββββββββββΌβββββββββββΌββββββββββββΌββββββββββββββββββββββ€
β 0 β 5.0.0 β code β comment out lifecycle files β 0 β 45 β 0.906s (cold start) β
β 1 β 5.0.0 β json β dependency remove strapi plugin i18n β 1 β 23 β 0.241s β
β 2 β 5.0.0 β json β dependency upgrade react and react dom β 0 β 24 β 0.089s β
β 3 β 5.0.0 β json β dependency upgrade react router dom β 1 β 23 β 0.073s β
β 4 β 5.0.0 β json β dependency upgrade styled components β 1 β 23 β 0.052s β
β 5 β 5.0.0 β code β deprecate helper plugin β 0 β 45 β 0.773s β
β 6 β 5.0.0 β code β entity service document service β 0 β 45 β 0.273s β
β 7 β 5.0.0 β code β s3 keys wrapped in credentials β 0 β 45 β 0.127s β
β 8 β 5.0.0 β json β sqlite3 to better sqlite3 β 0 β 24 β 0.061s β
β 9 β 5.0.0 β code β strapi public interface β 0 β 45 β 0.198s β
β 10 β 5.0.0 β code β use uid for config namespace β 0 β 45 β 0.196s β
β 11 β 5.0.0 β code β utils public interface β 0 β 45 β 0.499s β
ββββββ΄ββββββββββ΄βββββββ΄βββββββββββββββββββββββββββββββββββββββββ΄βββββββββββ΄ββββββββββββ΄ββββββββββββββββββββββ
[INFO] [2024-09-24T14:54:03.468Z] (3/4) Upgrading Strapi dependenciesβ¦
[INFO] [2024-09-24T14:54:03.470Z] (4/4) Installing dependenciesβ¦
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: cms-prod-project@0.1.0
npm error Found: @strapi/plugin-cloud@4.25.11
npm error node_modules/@strapi/plugin-cloud
npm error @strapi/plugin-cloud@β5.0.0β from the root project
npm error
npm error Could not resolve dependency:
npm error @strapi/plugin-cloud@β5.0.0β from the root project
npm error
npm error Conflicting peer dependency: @strapi/strapi@5.0.0
npm error node_modules/@strapi/strapi
npm error peer @strapi/strapi@β^5.0.0 || ^5.0.0-beta || ^5.0.0-alpha || ^5.0.0-rcβ from @strapi/plugin-cloud@5.0.0
npm error node_modules/@strapi/plugin-cloud
npm error @strapi/plugin-cloud@β5.0.0β from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/cmsadmin/.npm/_logs/2024-09-24T14_54_03_595Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/cmsadmin/.npm/_logs/2024-09-24T14_54_03_595Z-debug-0.log
[ERROR] [2024-09-24T14:54:07.977Z] Command failed with exit code 1: npm install
Then if i try and rerun I get the following:
cmsadmin@cms-test-vm:~/cms-prod-project$ npx @strapi/upgrade major
[WARN] [2024-09-24T15:37:21.688Z] Please make sure youβve created a backup of your codebase and files before upgrading
[ERROR] [2024-09-24T15:37:22.173Z] Couldnβt find a matching version in the NPM registry for βmajorβ