Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In frontend i can not install module using "npm install". it show error: #20

Open
ashishnxt opened this issue Oct 27, 2023 · 11 comments
Open

Comments

@ashishnxt
Copy link

PS D:\clothing\Eshop-tutorial-master\Eshop-tutorial-master\frontend> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @material-ui/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR! peer react@">=16.3.0" from @paypal/[email protected]
npm ERR! node_modules/@paypal/react-paypal-js
npm ERR! @paypal/react-paypal-js@"^7.8.3" from the root project
npm ERR! 12 more (@reduxjs/toolkit, @stripe/react-stripe-js, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"^4.12.4" from the root project
npm ERR! peer @material-ui/core@"^4.12.0 || ^5.0.0-beta.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/data-grid
npm ERR! @material-ui/data-grid@"^4.0.0-alpha.37" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"^4.12.4" from the root project
npm ERR! peer @material-ui/core@"^4.12.0 || ^5.0.0-beta.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/data-grid
npm ERR! @material-ui/data-grid@"^4.0.0-alpha.37" 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\ashis\AppData\Local\npm-cache_logs\2023-10-27T08_39_48_088Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\ashis\AppData\Local\npm-cache_logs\2023-10-27T08_39_48_088Z-debug-0.log

@Kavindu1446
Copy link

Use "yarn" instead using the npm install
Then use "yarn start"

@ashishnxt
Copy link
Author

I try "npm install --legacy-peer-deps"
It's working.

@Kavindu1446
Copy link

Dose you're pages are working correctly? mine pages are not loading only the home page is working

@ashishnxt
Copy link
Author

Yes home page working and other page are loading....

@ashishnxt
Copy link
Author

IMG_20231027_173747.jpg

@Kavindu1446
Copy link

image

Im getting this error, when logging in, did you login to the dashboard?

@ashishnxt
Copy link
Author

Not yet

@sabeen2
Copy link

sabeen2 commented Dec 28, 2023

image

Im getting this error, when logging in, did you login to the dashboard?

You've set up https:// instead of http. Go to frontend/src/server.js and put

export const server = "http://localhost:8000/api/v2";
export const backend_url = "http://localhost:8000/";

If you've used https in one file, make sure to use http in other files too.

@amul69906995
Copy link

i know why u are getting error this is because of conflicting dependencied try using
npm install --legacy-peer-deps
npm install --force

@pavigitup
Copy link

npm install --legacy-peer-deps
npm install --force
no both of these not working

@Anonymous-988
Copy link

Anyone was able to close the above errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants