Я создал проект с помощью
Код: Выделить всё
npm init vue@3И с запятой:
Код: Выделить всё
npm install
Код: Выделить всё
{
"name": "mybadge",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --host 0.0.0.0 --port 80",
"build": "vue-cli-service build",
"svg": "rm -rf ./public/static/compiled-icons && vsvg -s ./src/assets/icons -t ./public/static/compiled-icons"
},
"dependencies": {
"apexcharts": "^3.10.1",
"axios": "^0.19.0",
"core-js": "^2.6.5",
"mini-toastr": "^0.8.1",
"register-service-worker": "^1.6.2",
"vue": "^2.6.10",
"vue-apexcharts": "^1.5.1",
"vue-axios": "^2.1.4",
"vue-mini-toast": "^1.0.1",
"vue-perfect-scrollbar": "^0.2.0",
"vue-router": "^3.0.3",
"vue-youtube": "^1.3.5",
"vuetify": "^2.1.14"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.11.0",
"@vue/cli-plugin-pwa": "^3.11.0",
"@vue/cli-service": "^3.11.0",
"material-design-icons-iconfont": "^5.0.1",
"sass": "^1.17.4",
"sass-loader": "^7.1.0",
"vue-cli-plugin-vuetify": "^0.6.3",
"vue-svgicon": "^3.2.6",
"vue-template-compiler": "^2.6.10",
"vuetify-loader": "^1.2.2"
}
}
Я пытаюсь установить той же командой
Код: Выделить всё
npm install vue-svgicon --saveКод: Выделить всё
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: mybadge@0.0.0
npm error Found: vue@3.5.13
npm error node_modules/vue
npm error vue@"^3.5.13" from the root project
npm error
npm error Could not resolve dependency:
npm error peer vue@"^2.5.17" from vue-svgicon@3.3.2
npm error node_modules/vue-svgicon
npm error vue-svgicon@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\vis\AppData\Local\npm-cache\_logs\2025-01-23T15_32_49_704Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\vis\AppData\Local\npm-cache\_logs\2025-01-23T15_32_49_704Z-debug-0.log
Подробнее здесь: https://stackoverflow.com/questions/793 ... ue-svgicon
Мобильная версия