You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered: