recently I tried to install Strapi to my windows computer using "npx". But I'm getting an error when the dependencies get updated as below.I tried to uninstall and install knex but it didn't work. How can i solve tthis problem?
strapi-app>npx create-strapi-app . --quickstart
Creating a new Strapi application at D:E-LEARNINGReact Jsprojectsstrapi-app.
Creating a quickstart project.
Creating files.
Error while installing dependencies:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/knex
npm ERR! knex@"<0.20.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer knex@"^0.20.0" from [email protected]
npm ERR! node_modules/strapi-connector-bookshelf
npm ERR! strapi-connector-bookshelf@"3.4.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! See C:UsersuserAppDataLocal
pm-cacheeresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersuserAppDataLocal
pm-cache\_logs2021-01-12T10_28_05_191Z-debug.log
Keep trying!
Oh, it seems that you encountered errors while installing dependencies in your project.
Don't give up, your project was created correctly.
Fix the issues mentionned in the installation errors and try to run the following command:
cd D:E-LEARNINGReact Jsprojectsstrapi-app && npm install
npm ERR! code 1
npm ERR! path D:E-LEARNINGReact Jsprojectsstrapi-app
npm ERR! command failed
npm ERR! command C:Windowssystem32cmd.exe /d /s /c create-strapi-app . --quickstart
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersuserAppDataLocal
pm-cache\_logs2021-01-12T10_28_07_219Z-debug.log
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…