title: Module not found: Error: Can't resolve 'vuex' in '/myapp/src/store'
body: <p>I am new to Vue/Vuex.<br />
  I'm trying to make a login function in my Vue.js app, and I'm getting the error below even though I have installed Vuex in my project.</p>
  <pre><code>./src/store/index.js
  Module not found: Error: Can't resolve 'vuex' in '/myapp/src/store'
  </code></pre>
  <pre><code>// package.json
  
  &quot;dependencies&quot;: {
    &quot;axios&quot;: &quot;^0.19.2&quot;,
    &quot;core-js&quot;: &quot;^2.6.5&quot;,
    &quot;vue&quot;: &quot;^2.6.10&quot;,
    &quot;vue-router&quot;: &quot;^3.4.2&quot;,
    &quot;vuex&quot;: &quot;^3.5.1&quot;
  },
  </code></pre>
  <pre><code>// src/store/index.js
  
  import Vue from 'vue'
  import Vuex from 'vuex'
  
  Vue.use(Vuex)
  
  const store = new Vuex.Store({
    state: {
      userId: &quot;&quot;,
      userToken: &quot;&quot;
    },
    mutations: {
      updateUser(state, user) {
        state.userId = user.userId;
        state.userToken = user.userToken;
      }
    },
    actions: {
      auth(context, user) {
        context.commit('updateUser', user);
      }
    },
    modules: {},
  })
  
  export default store
  </code></pre>
  <p>Any suggestions to solve this problem?</p>