Closed
Description
Current Behavior:
Based off the feedback in #2000, I'm filing a unique bug on this. In an empty React Applicaiton created with the create-react-app
Typescript template, npm install
fails with the following:
$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: typescript@4.0.5
npm ERR! node_modules/typescript
npm ERR! typescript@"^4.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@"^3.2.1" from react-scripts@4.0.0
npm ERR! node_modules/react-scripts
npm ERR! react-scripts@"4.0.0" 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.
Expected Behavior:
npm install
should succeed
Steps To Reproduce:
npx create-react-app myapp --template typescript
cd myapp
rm -rf node_modules
npm install
Environment:
- OS: MacOS 10.15.6
- Node: 15.1.0
- npm: 7.0.8