saeidrahimi
1 سال پیش توسط saeidrahimi مطرح شد
1 پاسخ

ارور هنگام نصب npm install react-particles

سلام دوستان هنگام نصب react-particles ارور زیر رو میده راننمایی بفرمایید


$ npm install react-particles  
npm ERR! code ERESOLVE  
npm ERR! ERESOLVE could not resolve  
npm ERR!  
npm ERR! While resolving: react-tilt@0.1.4  
npm ERR! Found: react@18.2.0  
npm ERR! nodemodules/react  
npm ERR! peer react@"^18.0.0" from @testing-library/react@13.4.0  
npm ERR! nodemodules/@testing-library/react  
npm ERR! @testing-library/react@"^13.4.0" from the root project  
npm ERR! peer react@"^18.2.0" from react-dom@18.2.0  
npm ERR! nodemodules/react-dom  
npm ERR! peer react-dom@"^18.0.0" from @testing-library/react@13.4.0  
npm ERR! nodemodules/@testing-library/react  
npm ERR! @testing-library/react@"^13.4.0" from the root project  
npm ERR! react-dom@"^18.2.0" from the root project  
npm ERR! 3 more (react-scripts, the root project, react-particles)  
npm ERR!  
npm ERR! Could not resolve dependency:  
npm ERR! peer react@"^15.0.0 || ^16.0.0-beta || ^16.0.0" from react-tilt@0.1.4  
npm ERR! nodemodules/react-tilt  
npm ERR! react-tilt@"^0.1.4" from the root project  
npm ERR!  
npm ERR! Conflicting peer dependency: react@16.14.0  
npm ERR! nodemodules/react  
npm ERR! peer react@"^15.0.0 || ^16.0.0-beta || ^16.0.0" from react-tilt@0.1.4  
npm ERR! nodemodules/react-tilt  
npm ERR! react-tilt@"^0.1.4" 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:\\Users\\SAEID\\AppData\\Local\\npm-cache\\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:  
npm ERR! C:\\Users\\SAEID\\AppData\\Local\\npm-cachelogs\\2023-02-11T150616369Z-debug-0.log

ثبت پرسش جدید
T Game
@TGame 1 سال پیش مطرح شد
0

سلام دوست عزیز
تو خود ارور هم راهکار داده که چکار کنی !
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps

npm install react-particles --force
یا 
npm install react-particles --legacy-peer-deps

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام