Facing Error While strapi installation

System Information
  • Strapi Version: latest v 4.140
  • Operating System: WIndow 10
  • Database: default (sqlLite)
  • Node Version: v18.12.0
  • NPM Version: 9.1.2

//Terminal Output:-

PS D:\VINAY\newton school\Fontend Practice Code\simple> cd api
PS D:\VINAY\newton school\Fontend Practice Code\simple\api> npx create-strapi-app@latest .
? Choose your installation type Quickstart (recommended)
Creating a quickstart project.
Creating a new Strapi application at D:\VINAY\newton school\Fontend Practice Code\simple\api.
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: api@0.1.0
npm ERR! Found: styled-components@5.3.3
npm ERR! node_modules/styled-components
npm ERR! styled-components@“5.3.3” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer styled-components@“^5.3.6” from @strapi/plugin-cloud@4.15.1
npm ERR! node_modules/@strapi/plugin-cloud
npm ERR! @strapi/plugin-cloud@“4.15.1” 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\admin\AppData\Local\npm-cache_logs\2023-11-03T10_37_51_253Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Local\npm-cache_logs\2023-11-03T10_37_51_253Z-debug-0.log
TypeError: Cannot read properties of undefined (reading ‘addBreadcrumb’)
at C:\Users\admin\AppData\Local\npm-cache_npx\2d56dd13733e9da7\node_modules@strapi\generate-new\dist\utils\usage.js:36:31
at Array.forEach ()
at Module.captureStderr (C:\Users\admin\AppData\Local\npm-cache_npx\2d56dd13733e9da7\node_modules@strapi\generate-new\dist\utils\usage.js:35:37)
at createProject (C:\Users\admin\AppData\Local\npm-cache_npx\2d56dd13733e9da7\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\admin\AppData\Local\npm-cache_npx\2d56dd13733e9da7\node_modules@strapi\generate-new\dist\create-quickstart-project.js:18:3)

//package.json :-

{
“name”: “api”,
“private”: true,
“version”: “0.1.0”,
“description”: “A Strapi application”,
“scripts”: {
“develop”: “strapi develop”,
“start”: “strapi start”,
“build”: “strapi build”,
“strapi”: “strapi”
},
“devDependencies”: {},
“dependencies”: {
@strapi/strapi”: “4.15.1”,
@strapi/plugin-users-permissions”: “4.15.1”,
@strapi/plugin-i18n”: “4.15.1”,
@strapi/plugin-cloud”: “4.15.1”,
“better-sqlite3”: “8.6.0”,
“react”: “^18.0.0”,
“react-dom”: “^18.0.0”,
“react-router-dom”: “5.3.4”,
“styled-components”: “5.3.3”
},
“author”: {
“name”: “A Strapi developer”
},
“strapi”: {
“uuid”: “35d1f98b-5c63-47b9-88f2-02be330c01bf”
},
“engines”: {
“node”: “>=18.0.0 <=20.x.x”,
“npm”: “>=6.0.0”
},
“license”: “MIT”
}