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

Could not resolve dependency #31

Open
fernubio opened this issue Aug 4, 2022 · 1 comment
Open

Could not resolve dependency #31

fernubio opened this issue Aug 4, 2022 · 1 comment

Comments

@fernubio
Copy link

fernubio commented Aug 4, 2022

When I run the npm run start command I got this error message:

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/aws-amplify
npm ERR! aws-amplify@"^2.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer aws-amplify@"^1.x" from [email protected]
npm ERR! node_modules/aws-amplify-react
npm ERR! aws-amplify-react@"^3.1.1" from the root project

@Emiria486
Copy link

When I run the npm run start command I got this error message:

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/aws-amplify npm ERR! aws-amplify@"^2.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer aws-amplify@"^1.x" from [email protected] npm ERR! node_modules/aws-amplify-react npm ERR! aws-amplify-react@"^3.1.1" from the root project

you can fix it by npm install --force the fix the packjson scripts part like this:"scripts": {
"start": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build",
"test": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts test",
"eject": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts eject"
},then npm run start you can run this app

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

2 participants