InhiblabCore / vue-hooks-plus

High performance & Simplicity 🧲 Vue 3 Hooks library
https://InhiblabCore.github.io/docs/hooks
MIT License
1.65k stars 104 forks source link

@vue-hooks-plus/resolvers 与vue-hooks-plus@2.1.0 不匹配,导致npm安装时需要 --force #208

Closed vaseala closed 5 months ago

vaseala commented 5 months ago

Description

直接执行安装报下面的错:

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @vue-hooks-plus/resolvers@1.2.4 npm ERR! Found: vue-hooks-plus@2.1.0 npm ERR! node_modules/vue-hooks-plus npm ERR! vue-hooks-plus@"^2.1.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer vue-hooks-plus@"^1.5.2" from @vue-hooks-plus/resolvers@1.2.4 npm ERR! node_modules/@vue-hooks-plus/resolvers npm ERR! dev @vue-hooks-plus/resolvers@"^1.2.4" from the root project npm ERR! npm ERR! Conflicting peer dependency: vue-hooks-plus@1.9.0 npm ERR! node_modules/vue-hooks-plus npm ERR! peer vue-hooks-plus@"^1.5.2" from @vue-hooks-plus/resolvers@1.2.4 npm ERR! node_modules/@vue-hooks-plus/resolvers npm ERR! dev @vue-hooks-plus/resolvers@"^1.2.4" 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! npm ERR! For a full report see: npm ERR! /Users/***/.npm/_logs/2024-05-28T01_12_40_636Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/***/.npm/_logs/2024-05-28T01_12_40_636Z-debug-0.log

目前安装时需要 npm i --force

Suggested solution

建议升级 @vue-hooks-plus/resolvers 对 vue-hooks-plus 依赖的版本

Alternative

No response

Additional context

No response

Validations

NelsonYong commented 5 months ago

@vaseala 已更新至 1.2.5