При выполнении
npm install vue-router
мне выдает
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: vue@2.6.14
npm ERR! node_modules/vue
npm ERR! dev vue@"^2.6.12" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^3.2.0" from vue-router@4.0.15
npm ERR! node_modules/vue-router
npm ERR! vue-router@"*" 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!
npm ERR! See /Users/vladimir/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/vladimir/.npm/_logs/2022-05-11T12_34_13_360Z-debug.log
full report:
# npm resolution error report
2022-05-11T12:34:13.358Z
While resolving: undefined@undefined
Found: vue@2.6.14
node_modules/vue
dev vue@"^2.6.12" from the root project
Could not resolve dependency:
peer vue@"^3.2.0" from vue-router@4.0.15
node_modules/vue-router
vue-router@"*" 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": "vue",
"version": "2.6.14",
"whileInstalling": {
"path": "/Users/vladimir/Desktop/shop"
},
"location": "node_modules/vue",
"isWorkspace": false,
"dependents": [
{
"type": "dev",
"name": "vue",
"spec": "^2.6.12",
"from": {
"location": "/Users/vladimir/Desktop/shop"
}
}
]
},
"currentEdge": {
"type": "dev",
"name": "vue",
"spec": "^2.6.12",
"from": {
"location": "/Users/vladimir/Desktop/shop"
}
},
"edge": {
"type": "peer",
"name": "vue",
"spec": "^3.2.0",
"error": "INVALID",
"from": {
"name": "vue-router",
"version": "4.0.15",
"whileInstalling": {
"path": "/Users/vladimir/Desktop/shop"
},
"location": "node_modules/vue-router",
"isWorkspace": false,
"dependents": [
{
"type": "prod",
"name": "vue-router",
"spec": "*",
"from": {
"location": "/Users/vladimir/Desktop/shop"
}
}
]
}
},
"strictPeerDeps": false,
"force": false
}