본문 바로가기

Develop/Vue

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

반응형

https://velog.io/@m_yn/%EC%98%A4%EB%A5%98%ED%95%B4%EA%B2%B0-While-resolving-vueeslint-config-standard6.1.0

 

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

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

velog.io

아래와 같은 에러가 무수히 떠서 원인을 찾아봤고

npm 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.

해결방법은 package.json에서 eslint-plugin-vue 버전을 ^7.20.0으로 수정해주면된다.

"eslint-plugin-vue": "^7.20.0"

 

반응형

'Develop > Vue' 카테고리의 다른 글

[Vue] google chrome CORS 우회하기  (0) 2023.08.13