美文网首页
git clone 项目后npm install 出现ERESO

git clone 项目后npm install 出现ERESO

作者: Oct1a | 来源:发表于2021-04-26 17:06 被阅读0次
    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE unable to resolve dependency tree
    npm ERR!
    npm ERR! While resolving: vue-wechat-auth@2.0.0
    npm ERR! Found: vue@2.6.12
    npm ERR! node_modules/vue
    npm ERR!   vue@"^2.6.11" from the root project
    npm ERR!
    npm ERR! Could not resolve dependency:
    npm ERR! peer vue@"3.0.11" from @vue/compiler-sfc@3.0.11
    npm ERR! node_modules/@vue/compiler-sfc
    npm ERR!   peer @vue/compiler-sfc@"^3.0.0-beta.14" from @vue/cli-service@4.5.12
    npm ERR!   node_modules/@vue/cli-service
    npm ERR!     dev @vue/cli-service@"~4.5.0" from the root project
    npm ERR!     1 more (@vue/cli-plugin-babel)
    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 C:\Users\Oct1a\AppData\Local\npm-cache\eresolve-report.txt for a full report.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\Oct1a\AppData\Local\npm-cache\_logs\2021-04-26T08_57_47_739Z-debug.log
    

    运行别人的项目运行不了,看错误报告好像是找不到对应版本,但自己又不想降版本,感觉很麻烦, 然后看npm install不行就用cnpm install居然可以了。

    相关文章

      网友评论

          本文标题:git clone 项目后npm install 出现ERESO

          本文链接:https://www.haomeiwen.com/subject/rzperltx.html