title: Failed to install Vuex in Vue3
body: <p>I want to install Vuex but I get an error.</p>
  <pre><code>// error
  npm ERR! code ERESOLVE
  npm ERR! ERESOLVE unable to resolve dependency tree
  npm ERR! 
  npm ERR! While resolving: vuejs-v-3@0.1.0
  npm ERR! Found: vue@3.1.2
  npm ERR! node_modules/vue
  npm ERR!   vue@&quot;^3.1.2&quot; from the root project
  npm ERR! 
  npm ERR! Could not resolve dependency:
  npm ERR! peer vue@&quot;^2.0.0&quot; from vuex@3.6.2
  npm ERR! node_modules/vuex
  npm ERR!   vuex@&quot;*&quot; 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 /home/hap/.npm/eresolve-report.txt for a full report.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/hap/.npm/_logs/2021-06-24T06_46_36_463Z-debug.log
  </code></pre>
  <pre><code>// package.json
  
      {
    &quot;name&quot;: &quot;vuejs-v-3&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;serve&quot;: &quot;vue-cli-service serve&quot;,
      &quot;build&quot;: &quot;vue-cli-service build&quot;,
      &quot;lint&quot;: &quot;vue-cli-service lint&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@apollo/client&quot;: &quot;^3.3.20&quot;,
      &quot;axios&quot;: &quot;^0.21.1&quot;,
      &quot;bootstrap&quot;: &quot;^5.0.2&quot;,
      &quot;core-js&quot;: &quot;^3.6.5&quot;,
      &quot;graphql&quot;: &quot;^15.5.1&quot;,
      &quot;vue&quot;: &quot;^3.1.2&quot;,
      &quot;vue-router&quot;: &quot;^4.0.10&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@vue/cli-plugin-babel&quot;: &quot;~4.5.0&quot;,
      &quot;@vue/cli-plugin-eslint&quot;: &quot;~4.5.0&quot;,
      &quot;@vue/cli-service&quot;: &quot;~4.5.0&quot;,
      &quot;@vue/compiler-sfc&quot;: &quot;^3.0.0&quot;,
      &quot;babel-eslint&quot;: &quot;^10.1.0&quot;,
      &quot;eslint&quot;: &quot;^6.7.2&quot;,
      &quot;eslint-plugin-vue&quot;: &quot;^7.0.0&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;root&quot;: true,
      &quot;env&quot;: {
        &quot;node&quot;: true
      },
      &quot;extends&quot;: [
        &quot;plugin:vue/vue3-essential&quot;,
        &quot;eslint:recommended&quot;
      ],
      &quot;parserOptions&quot;: {
        &quot;parser&quot;: &quot;babel-eslint&quot;
      },
      &quot;rules&quot;: {}
    },
    &quot;browserslist&quot;: [
      &quot;&gt; 1%&quot;,
      &quot;last 2 versions&quot;,
      &quot;not dead&quot;
    ]
  }
  
  </code></pre>