当前位置 : 主页 > 网络编程 > 其它编程 >

安装组件库vant时遇到的问题

来源:互联网 收集:自由互联 发布时间:2023-07-02
安装报错:npmERR!codeERESOLVEnpmERR!ERESOLVEunabletoresolvedependencytreenpmERR!npmERR!Whileres 安装报错: npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency treenpm ERR!npm ERR! While resolving: hello-world@0.1.0
安装报错:npmERR!codeERESOLVEnpmERR!ERESOLVEunabletoresolvedependencytreenpmERR!npmERR!Whileres

安装报错:

npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency treenpm ERR!npm ERR! While resolving: hello-world@0.1.0npm ERR! Found: vue@2.7.10npm ERR! node_modules/vuenpm ERR! vue@"^2.6.14" from the root projectnpm ERR! npm ERR! Could not resolve dependency:npm ERR! peer vue@"^3.0.0" from vant@3.6.2npm ERR! node_modules/vantnpm ERR! vant@"*" from the root projectnpm ERR!npm ERR! Fix the upstream dependency conflict, or retrynpm ERR! to accept an incorrect (and potentially broken) dependency resolution.npm ERR!

解决方法:

我的解决办法,退而求次安装vue2版本,然后成功了,可以想到,应该是npm的版本过低了,更新npm或许可以安装vue3的

 

上一篇:MySQLredo死锁问题排查及解决过程分析
下一篇:没有了
网友评论