ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: chatgpt-nuxt@0.0.1
npm ERR! Found: vue@3.2.47
npm ERR! node_modules/vue
npm ERR! peer vue@"3.x" from @icon-park/vue-next@1.4.2
npm ERR! node_modules/@icon-park/vue-next
npm ERR! @icon-park/vue-next@"^1.4.2" from the root project
npm ERR! vue@"^3.2.47" from nuxt@3.3.3
npm ERR! node_modules/nuxt
npm ERR! dev nuxt@"3.3.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! pinia@"^2.0.34" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: vue@2.6.14
npm ERR! node_modules/vue
npm ERR! peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.1
npm ERR! node_modules/@vue/composition-api
npm ERR! peerOptional @vue/composition-api@"^1.4.0" from pinia@2.0.34
npm ERR! node_modules/pinia
npm ERR! pinia@"^2.0.34" 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 /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-04-14T22_07_50_499Z-debug-0.log
[root@iZj6c6r36jb1q9uey0fypyZ chatgpt-nuxt]# npm update
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: chatgpt-nuxt@0.0.1
npm ERR! Found: vue@3.2.47
npm ERR! node_modules/vue
npm ERR! peer vue@"3.x" from @icon-park/vue-next@1.4.2
npm ERR! node_modules/@icon-park/vue-next
npm ERR! @icon-park/vue-next@"^1.4.2" from the root project
npm ERR! vue@"^3.2.47" from nuxt@3.3.3
npm ERR! node_modules/nuxt
npm ERR! dev nuxt@"3.3.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! pinia@"^2.0.34" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: vue@2.6.14
npm ERR! node_modules/vue
npm ERR! peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.1
npm ERR! node_modules/@vue/composition-api
npm ERR! peerOptional @vue/composition-api@"^1.4.0" from pinia@2.0.34
npm ERR! node_modules/pinia
npm ERR! pinia@"^2.0.34" 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 /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-04-14T22_08_21_241Z-debug-0.log
查看日志
error
91 error Fix the upstream dependency conflict, or retry
91 error this command with --force, or --legacy-peer-deps
91 error to accept an incorrect (and potentially broken) dependency resolution.
91 error
91 error See /root/.npm/eresolve-report.txt for a full report.
92 verbose exit 1
93 timing npm Completed in 7279ms
94 verbose unfinished npm timer reify 1681510410838
95 verbose unfinished npm timer reify:loadTrees 1681510410852
96 verbose unfinished npm timer idealTree:buildDeps 1681510410939
97 verbose unfinished npm timer idealTree:#root 1681510410940
重新运行
npm install --force, or --legacy-peer-deps
问题解决