title: Vue-cli 3: "command failed: npm install --loglevel error"
body: <p>Every time I try to create a new project (<code>vue create my-project</code>), I get this error:</p>
  
  <blockquote>
    <p>ERROR : command failed: npm install --loglevel error</p>
  </blockquote>
  
  <p>I'm on PC / Windows 10, Vue-cli 3.2.1, Node 8.11.3, Npm 5.6.0. 
  Presets:
  Babel, ESLint &amp; Prettier, SASS, Vue router, Vuex</p>
  
  <p>From the log:</p>
  
  <blockquote>
    <p>2736 silly saveTree `-- vuex@3.0.1</p>
    
    <p>2737 warn ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is
    installed. You must install peer dependencies yourself.</p>
    
    <p>2738 verbose stack Error: EINVAL: invalid argument, read</p>
  </blockquote>
  
  <p>Any idea what that means and how to solve it?</p>
  
  <p>EDIT: I figured out that excluding any lint feature makes the problem disappear. So the question becomes: how can I still use linting and make it work?</p>
  
  <p><a href="https://i.stack.imgur.com/v3Yak.png" rel="noreferrer"><img src="https://i.stack.imgur.com/v3Yak.png" alt="enter image description here"></a></p>