title: vue cli project won't run - 'babel-code-frame'
body: <p>I am trying to create the absolute basic new vue-cli project, on Linux. The generated project won't run. What am I doing wrong?</p>
  <p>I installed the most recent vue cli</p>
  <pre><code>sudo npm install -g @vue/cli@4.5.0
  </code></pre>
  <p>I created a new project:</p>
  <pre><code>cd /tmp
  vue create project1
  </code></pre>
  <p>I selected the default presets.</p>
  <p>I tried to run the project</p>
  <pre><code>$ cd project1
  
  $ npm run serve
  
  &gt; project1@0.1.0 serve /tmp/project1
  &gt; vue-cli-service serve
  
   INFO  Starting development server...
   ERROR  Error: Cannot find module 'babel-code-frame'
  Error: Cannot find module 'babel-code-frame'
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
      at Function.Module._load (internal/modules/cjs/loader.js:562:25)
      at Module.require (internal/modules/cjs/loader.js:692:17)
      at require (internal/modules/cjs/helpers.js:25:18)
      at Object.&lt;anonymous&gt; (/usr/share/nodejs/eslint/lib/formatters/codeframe.js:8:19)
      at Module._compile (internal/modules/cjs/loader.js:778:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
      at Module.load (internal/modules/cjs/loader.js:653:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
      at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      at Module.require (internal/modules/cjs/loader.js:692:17)
      at require (internal/modules/cjs/helpers.js:25:18)
      at exports.loadModule (/tmp/project1/node_modules/@vue/cli-shared-utils/lib/module.js:79:14)
      at api.chainWebpack.webpackConfig (/tmp/project1/node_modules/@vue/cli-plugin-eslint/index.js:59:26)
      at webpackChainFns.forEach.fn (/tmp/project1/node_modules/@vue/cli-service/lib/Service.js:236:40)
      at Array.forEach (&lt;anonymous&gt;)
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! project1@0.1.0 serve: `vue-cli-service serve`
  npm ERR! Exit status 1
  npm ERR! 
  npm ERR! Failed at the project1@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/kevin/.npm/_logs/2020-07-24T17_38_02_618Z-debug.log
  </code></pre>
  <p>My npm version is 6.14.7</p>
  <pre><code>$ npm --version
  6.14.7
  </code></pre>
  <p>This is package.json after manually hacking in &quot;@babel/code-frame&quot; as suggested by Igor.</p>
  <pre><code>{
    &quot;name&quot;: &quot;project1&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;vue&quot;: &quot;^2.6.11&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/code-frame&quot;: &quot;^7.10.4&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;babel-eslint&quot;: &quot;^10.1.0&quot;,
      &quot;eslint&quot;: &quot;^6.7.2&quot;,
      &quot;eslint-plugin-vue&quot;: &quot;^6.2.2&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/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>I tried clearing down npm cache as per this ticket, but it didn't make a difference.</p>
  <pre><code>https://stackoverflow.com/questions/42308879/npm-err-code-elifecycle
  </code></pre>