title: Error: EACCES: permission denied using webpack
body: <p>I'm attempting to use webpack for the first time and I'm getting this error,</p>
  
  <pre><code>Error: EACCES: permission denied, mkdir '/dist'
      at Error (native)
  </code></pre>
  
  <p>when trying to run my production script.</p>
  
  <p>A <code>sudo chown -R 'whoami' /dist</code> came back with <code>chown: /dist: No such file or directory</code>.</p>
  
  <p>How can I go about resolving this?</p>