Hi,
Just bought Start template for React but "npm i" doesn't work:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-scripts@4.0.1
npm ERR! Found: typescript@4.1.2
npm ERR! node_modules/typescript
npm ERR! typescript@"4.1.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@"^3.2.1" from react-scripts@4.0.1
npm ERR! node_modules/react-scripts
npm ERR! react-scripts@"4.0.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: typescript@3.9.10
npm ERR! node_modules/typescript
npm ERR! peerOptional typescript@"^3.2.1" from react-scripts@4.0.1
npm ERR! node_modules/react-scripts
npm ERR! react-scripts@"4.0.1" 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!
any ideas? thx!
Hi Carlos,
Thank you for reaching out to us.
We will check this error in more detail and fix this as soon as possible.
For now, as a temporary solution, try to run the installation command with --force, or --legacy-peer-deps.
npm install --force
npm install --legacy-peer-deps
Hi,
I am still getting same issue, Is there any fix for this ?
On local I am able to install it via -force but when I am deploying on vercel with force flag I am getting below error
npm ERR! network request to https://registry.yarnpkg.commedia-typer/-media-typer-0.3.0.tgz failed, reason: getaddrinfo ENOTFOUND registry.yarnpkg.commedia-typer
I am using node 18 with npm on Vercel.
Also If you may help me with deployment steps it would be helpful