title: Error: Cannot find module 'vue-loader-v16/package.json'
body: <p>i am new to vue.js, just coming from react.js. the problem i am facing with the vue loader didn't happened at first. but from the second time the app crashes from starting the server.</p>
  <pre><code> npm run serve
  
  &gt; todo@0.1.0 serve /home/riyad/Desktop/todo_wedevs/todo
  &gt; vue-cli-service serve
  
   INFO  Starting development server...
   ERROR  Error: Cannot find module 'vue-loader-v16/package.json'
  Error: Cannot find module 'vue-loader-v16/package.json'
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:613:15)
      at Function.Module._load (internal/modules/cjs/loader.js:539:25)
      at Module.require (internal/modules/cjs/loader.js:667:17)
      at require (internal/modules/cjs/helpers.js:20:18)
      at api.chainWebpack.webpackConfig (/home/riyad/Desktop/todo_wedevs/todo/node_modules/@vue/cli-service/lib/config/base.js:114:23)
      at webpackChainFns.forEach.fn (/home/riyad/Desktop/todo_wedevs/todo/node_modules/@vue/cli-service/lib/Service.js:236:40)
      at Array.forEach (&lt;anonymous&gt;)
      at Service.resolveChainableWebpackConfig (/home/riyad/Desktop/todo_wedevs/todo/node_modules/@vue/cli-service/lib/Service.js:236:26)
      at Service.resolveWebpackConfig (/home/riyad/Desktop/todo_wedevs/todo/node_modules/@vue/cli-service/lib/Service.js:240:48)
      at PluginAPI.resolveWebpackConfig (/home/riyad/Desktop/todo_wedevs/todo/node_modules/@vue/cli-service/lib/PluginAPI.js:132:25)
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! todo@0.1.0 serve: `vue-cli-service serve`
  npm ERR! Exit status 1
  npm ERR! 
  npm ERR! Failed at the todo@0.1.0 serve script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/riyad/.npm/_logs/2020-08-20T11_40_44_196Z-debug.log
  </code></pre>
  <p>i have tried vue cli 3 and also 2..and installed different vue-loader..but the result is same
  my babble.config.js file-&gt;</p>
  <pre><code>const { VueLoaderPlugin } = require(&quot;vue-loader&quot;);
  module.exports = {
    presets: [&quot;@vue/cli-plugin-babel/preset&quot;],
    plugins: [new VueLoaderPlugin()],
  };
  </code></pre>
  <p>package.json</p>
  <pre><code>{
    &quot;name&quot;: &quot;todo&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;core-js&quot;: &quot;^3.6.5&quot;,
      &quot;uuid&quot;: &quot;^8.3.0&quot;,
      &quot;vue&quot;: &quot;^3.0.0-0&quot;,
      &quot;vuex&quot;: &quot;^4.0.0-0&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-plugin-vuex&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-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-0&quot;,
      &quot;vue-loader&quot;: &quot;^16.0.0-beta.3&quot;,
      &quot;vue-template-compiler&quot;: &quot;^2.6.11&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>
  <p>the log-&gt;</p>
  <pre><code>0 info it worked if it ends with ok
  1 verbose cli [ '/home/riyad/.nvm/versions/node/v11.10.1/bin/node',
  1 verbose cli   '/home/riyad/.nvm/versions/node/v11.10.1/bin/npm',
  1 verbose cli   'run',
  1 verbose cli   'serve' ]
  2 info using npm@6.7.0
  3 info using node@v11.10.1
  4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
  5 info lifecycle todo@0.1.0~preserve: todo@0.1.0
  6 info lifecycle todo@0.1.0~serve: todo@0.1.0
  7 verbose lifecycle todo@0.1.0~serve: unsafe-perm in lifecycle true
  8 verbose lifecycle todo@0.1.0~serve: PATH: /home/riyad/.nvm/versions/node/v11.10.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/riyad/Desktop/todo_wedevs/todo/node_modules/.bin:/home/riyad/.nvm/versions/node/v11.10.1/bin:/home/riyad/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/riyad/.yarn/bin
  9 verbose lifecycle todo@0.1.0~serve: CWD: /home/riyad/Desktop/todo_wedevs/todo
  10 silly lifecycle todo@0.1.0~serve: Args: [ '-c', 'vue-cli-service serve' ]
  11 silly lifecycle todo@0.1.0~serve: Returned: code: 1  signal: null
  12 info lifecycle todo@0.1.0~serve: Failed to exec serve script
  13 verbose stack Error: todo@0.1.0 serve: `vue-cli-service serve`
  13 verbose stack Exit status 1
  13 verbose stack     at EventEmitter.&lt;anonymous&gt; (/home/riyad/.nvm/versions/node/v11.10.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
  13 verbose stack     at EventEmitter.emit (events.js:197:13)
  13 verbose stack     at ChildProcess.&lt;anonymous&gt; (/home/riyad/.nvm/versions/node/v11.10.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
  13 verbose stack     at ChildProcess.emit (events.js:197:13)
  13 verbose stack     at maybeClose (internal/child_process.js:984:16)
  13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
  14 verbose pkgid todo@0.1.0
  15 verbose cwd /home/riyad/Desktop/todo_wedevs/todo
  16 verbose Linux 5.6.19-2-MANJARO
  17 verbose argv &quot;/home/riyad/.nvm/versions/node/v11.10.1/bin/node&quot; &quot;/home/riyad/.nvm/versions/node/v11.10.1/bin/npm&quot; &quot;run&quot; &quot;serve&quot;
  18 verbose node v11.10.1
  19 verbose npm  v6.7.0
  20 error code ELIFECYCLE
  21 error errno 1
  22 error todo@0.1.0 serve: `vue-cli-service serve`
  22 error Exit status 1
  23 error Failed at the todo@0.1.0 serve script.
  23 error This is probably not a problem with npm. There is likely additional logging output above.
  24 verbose exit [ 1, true ]
  </code></pre>
  <p>also do suggest me how to setup a project safely with vuex and vue-router</p>