title: Getting an error 'No files matching the pattern were found' when using prettier
body: <p>I found this answer how to format code using <a href="https://stackoverflow.com/a/57629631/415078">prettier</a></p>
  <p>Here is what I've done</p>
  <pre><code>npm i prettier -g
  prettier --write \&quot;./**/*.{js,html}\&quot;
  </code></pre>
  <p>Got an error <code>[error] No files matching the pattern were found: &quot;&quot;./**/*.{js,html}&quot;&quot;.</code> any ideas how to fix? do you think it is because I installed the <code>prettier</code> globally (in the answer it is installed locally)?</p>
  <p>So how would you use pettier when it is installed globally then?</p>