# npm resolution error report
2021-01-18T07:56:28.615Z
Found: typescript@4.1.3
node_modules/typescript
dev typescript@"^4.1.3" from the root project
Could not resolve dependency:
peerOptional typescript@"^3.2.1" from react-scripts@4.0.1
node_modules/react-scripts
dev react-scripts@"^4.0.1" from the root project
Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
Raw JSON explanation object:
{
"code": "ERESOLVE",
"current": {
"name": "typescript",
"version": "4.1.3",
"location": "node_modules/typescript",
"dependents": [
{
"type": "dev",
"name": "typescript",
"spec": "^4.1.3",
"from": {
"location": "D:\\Git\\targos\\npm-force-peer-dep"
}
}
]
},
"edge": {
"type": "peerOptional",
"name": "typescript",
"spec": "^3.2.1",
"error": "INVALID",
"from": {
"name": "react-scripts",
"version": "4.0.1",
"location": "node_modules/react-scripts",
"dependents": [
{
"type": "dev",
"name": "react-scripts",
"spec": "^4.0.1",
"from": {
"location": "D:\\Git\\targos\\npm-force-peer-dep"
}
}
]
}
},
"peerConflict": null,
"strictPeerDeps": false,
"force": true
}
Current Behavior:
Run
npm install --forcefails instead of ignoring upstream dependency conflictExpected Behavior:
It should print a warning and continue with the installation.
Steps To Reproduce:
Output:
npm resolution error report
Environment: