解决安装并配置cz-customizable插件出现的报错问题

作者:袖梨 2026-06-15

安装并配置cz-customizable插件遇到报错

使用 npm 下载 cz-customizable

解决安装并配置cz-customizable插件遇到报错问题

npm i [email protected] --save-dev

报错信息

如下:

npm ERR! code ERESOLVE

npm ERR! ERESOLVE could not resolve

npm ERR!

npm ERR! While resolving: @vue/[email protected]

npm ERR! Found: [email protected]

npm ERR! node_modules/eslint-plugin-vue

npm ERR!   dev eslint-plugin-vue@"^8.0.3" from the root project

npm ERR!

npm ERR! node_modules/@vue/eslint-config-standard

npm ERR!   dev @vue/eslint-config-standard@"^6.1.0" from the root project

npm ERR!

npm ERR! Conflicting peer dependency: [email protected]

npm ERR! node_modules/eslint-plugin-vue

npm ERR!   peer eslint-plugin-vue@"^7.0.0" from @vue/[email protected]

npm ERR!   node_modules/@vue/eslint-config-standard

npm ERR!     dev @vue/eslint-config-standard@"^6.1.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.

解决办法

在指令最后加–force或者 --legacy-peer-deps 

npm i [email protected] --save-dev --legacy-peer-deps

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持本站。

相关文章

精彩推荐