GOOGLE ADS

Mittwoch, 13. April 2022

npx create-react-app zeigt bei der Installation einen Fehler an

npx create-react-app zeigt Fehler bei der Installation, bitte helfen Sie mir, dieses Problem zu lösen. meine nodejs-Version ist v16.14.2 und die npm-Version ist 8.5.0

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
added 1354 packages in 1m
171 packages are looking for funding
run `npm fund` for details
Initialized a git repository.
Installing template dependencies using npm...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: instagram-clone@0.1.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR! react@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"<18.0.0" from @testing-library/react@12.1.5
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@"^12.0.0" 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 /home/psn/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/psn/.npm/_logs/2022-04-12T07_12_21_032Z-debug-0.log
`npm install --no-audit --save @testing-library/jest-dom@^5.14.1 @testing-
library/react@^12.0.0 @testing-library/user-event@^13.2.1 web-vitals@^2.1.0` failed


Lösung des Problems

Klingt so, als würden Sie den npx create-react-appBefehl in einem Projekt ausführen, das bereits reagieren enthält. Versuche npm installstattdessen zu laufen.

Wenn das nicht funktioniert, versuchen Sie, Ihren node_modules-Ordner zu entfernen und npm installerneut auszuführen.

Keine Kommentare:

Kommentar veröffentlichen

Warum werden SCHED_FIFO-Threads derselben physischen CPU zugewiesen, obwohl CPUs im Leerlauf verfügbar sind?

Lösung des Problems Wenn ich das richtig verstehe, versuchen Sie, SCHED_FIFO mit aktiviertem Hyperthreading ("HT") zu verwenden, ...