[오류해결] While resolving: @vue/eslint-config-standard@6.1.0

my_mon·2023년 2월 9일
0
post-thumbnail

Vue.js 프로젝트를 진행하던 중 생긴 예상치 못한 오류
ajax를 사용하기 위해 axios를 설치하려 로컬터미널에 npm install axios 명령어를 실행하였다. 하지만 설치가 되지 않고 오류 메세지들이.....

``
ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @vue/eslint-config-standard@6.1.0
npm ERR! Found: eslint-plugin-vue@8.7.1
npm ERR! node_modules/eslint-plugin-vue
npm ERR! dev eslint-plugin-vue@"^8.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
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: eslint-plugin-vue@7.20.0
npm ERR! node_modules/eslint-plugin-vue
npm ERR! peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
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.
npm ERR!
npm ERR! See /Users/경로/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/경로/.npm/_logs/2023-02-09T04_09_30_005Z-debug-0.log
minyounglee@Mins-MacBook-Pro vuestagram % npm install axios
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @vue/eslint-config-standard@^8.0.3.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR! /경로/.npm/_logs/2023-02-09T04_16_30_419Z-debug-0.log
``

종속성을 해결할 수 없어서 발생한 오류.
package.json 파일을 확인하니 @vue/eslint-config-standard 버전이 6.1.0 버전으로 되어있는데 설치된 모듈과 호환되지 않는 피어 종속성이 있는 것 같다.

해결방법
"eslint-plugin-vue": "^7.20.0"
eslint의 플러그인 버전을 위와 같이 수정해 준 뒤 다시 설치를 시도한 결과 성공적으로 설치되었다

profile
기록하는 사람

0개의 댓글