[vue3] Failed to install Vuex in Vue3

Edward Hyun·2021년 12월 3일
0

debug

목록 보기
9/24

에러 메시지

npm i vue-router vuex 
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: vue-table-game@0.1.0
npm ERR! Found: vue@3.2.23
npm ERR! node_modules/vue
npm ERR!   vue@"^3.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^2.0.0" from vuex@3.6.2
npm ERR! node_modules/vuex
npm ERR!   vuex@"*" from the root project

vue v3에서 vuex를 설치하려니 에러가 뜬다.

ver3에서는 vuex ver4를 써야 하나보다
When using Vue3, refer to Vuex 4 Documentation to install Vuex 4 with

  • npm install vuex@next --save

참고 :: https://stackoverflow.com/questions/68111008/failed-to-install-vuex-in-vue3

profile
앱&웹개발(flutter, vuejs, typescript, react), 인공지능(nlp, asr, rl), 백엔드(nodejs, flask, golang, grpc, webrtc, aws, msa, nft, spring cloud, nest.js), 함수형 프로그래밍(scala, erlang)을 공부하며 정리합니다.

0개의 댓글