title: prettier js formatter in command line
body: <p>I would like to run <a href="https://github.com/prettier/prettier" rel="nofollow noreferrer">prettier</a> in the terminal command line on my linux machine, but I'm getting an error for some reason. Please advise. Here is my command:</p>
  
  <blockquote>
    <p>yarn prettier --write test.js</p>
  </blockquote>
  
  <p>Here is the error I'm getting</p>
  
  <blockquote>
    <p>error Command failed with exit code 1.</p>
  </blockquote>
  
  <p>Here is my file</p>
  
  <pre><code>foo({ num: 3 },
  1, 2)
  </code></pre>