Can't install strapi

Hi please help i strapi can’t be installed it gives me this error

PS C:\Users\BOUDAR> npx create-strapi-app strapi-project --quickstart
Creating a quickstart project.
Creating a new Strapi application at C:\Users\BOUDAR\strapi-project.
Creating files.
Error while installing dependencies:
npm WARN config production Use `--omit=dev` instead.
npm WARN config optional Use `--omit=optional` to exclude optional dependencies, or
npm WARN config `--include=optional` to include them.
npm WARN config
npm WARN config     Default value does install optional deps unless otherwise omitted.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: strapi-project@0.1.0
npm ERR! Found: @strapi/strapi@4.15.2
npm ERR! node_modules/@strapi/strapi
npm ERR!   @strapi/strapi@"4.15.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @strapi/strapi@"4.0.0" from @strapi/plugin-users-permissions@4.15.2
npm ERR! node_modules/@strapi/plugin-users-permissions
npm ERR!   @strapi/plugin-users-permissions@"4.15.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\BOUDAR\AppData\Local\npm-cache\_logs\2023-11-09T18_38_13_894Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\BOUDAR\AppData\Local\npm-cache\_logs\2023-11-09T18_38_13_894Z-debug-0.log
TypeError: Cannot read properties of undefined (reading 'addBreadcrumb')
    at C:\Users\BOUDAR\AppData\Local\npm-cache\_npx\f5b733dbc92df62b\node_modules\@strapi\generate-new\dist\utils\usage.js:36:31
    at Array.forEach (<anonymous>)
    at Module.captureStderr (C:\Users\BOUDAR\AppData\Local\npm-cache\_npx\f5b733dbc92df62b\node_modules\@strapi\generate-new\dist\utils\usage.js:35:37)
    at createProject (C:\Users\BOUDAR\AppData\Local\npm-cache\_npx\f5b733dbc92df62b\node_modules\@strapi\generate-new\dist\create-project.js:133:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async createQuickStartProject (C:\Users\BOUDAR\AppData\Local\npm-cache\_npx\f5b733dbc92df62b\node_modules\@strapi\generate-new\dist\create-quickstart-project.js:18:3)

i’m using

npm servsion: 9.5.1
nodejs version: v18.16.0


I got this error too, have you found a solution for this problem yet ?

Got exactly the same error. Any solutions?

Seems like there is a dependency issue in the latest minor release. Please use the previous release v4.15.0

npx create-strapi-app@v4.15.0 my-strapi-app-name

Seems like it, but there are more issues:

Couldn't find any versions for "@strapi/plugin-cloud" that matches "4.15.0"
? Please choose a version of "@strapi/plugin-cloud" from this list: 4.15.1
warning @strapi/plugin-cloud > @strapi/helper-plugin@4.15.1: v4.15.1 contains critical bugs. Use previous or next versions instead

I have the same problem, I try install before versions and not there are solution.

Interesting… the command works perfectly fine for me… here is a screenshot of another project I just created.

Not the strapi instance is up and running in my browser if you see beyond my terminal’s transparent bg.

Could you please try removing the npm cache and re-creating the strapi-app and share the result

1 Like

Can verify that somehow the peer dependency is set to Strapi 4.0.0 in the latest version of @strapi/plugin-users-permissions

"peerDependencies": {
    "@strapi/strapi": "4.0.0",


Hi guys thanks for all your Answers

i was able to fix the problem with this command

cd to your project and type this commands

npm cache clean --force

npm install --legacy-peer-deps

npm run develop

i was able to fix this with

cd to your project and type these commands

npm cache clean --force

npm install --legacy-peer-deps

npm run develop

You guys are geniuses I have fixed the errors with your help, thank you.

Glad to hear you resolved the issue! I also fixed some of my error from those suggestion, thank you.

This seems to be an issue with npm in general. My solution of choice would be to just use yarn

1 Like

Thanks for the feed back. Using yarn does avoid these issues.

1 Like