鸭子嘎鹅子呱 2022-03-23 21:28 采纳率: 0%
浏览 267

vue3+ts项目安装vue-fullpage.js时控制台报错

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: pcproject@0.1.0
npm ERR! Found: vue@3.2.31
npm ERR! node_modules/vue
npm ERR! vue@"^3.2.13" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^2.3.0" from vue-fullpage.js@0.1.7
npm ERR! node_modules/vue-fullpage.js
npm ERR! vue-fullpage.js@"*" 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! See C:\Users\hzy\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\hzy\AppData\Local\npm-cache_logs\2022-03-23T13_25_16_958Z-debug-0.log

  • 写回答

1条回答 默认 最新

  • CSDN专家-微编程 2022-03-23 23:07
    关注

    npm降低版本试试,降到6,或者使用npx指定npm版本
    npx -p npm@6 npm i --legacy-peer-deps

    评论

报告相同问题?

问题事件

  • 创建了问题 3月23日