title: How to set storage rules so I can run my Firebase storage emulator?
body: <p>When I run <code>firebase emulators:start</code> I have this error</p>
  <blockquote>
  <p>Error: Cannot start the Storage emulator without rules file specified
  In firebase.json</p>
  </blockquote>
  <p>Before installing Storage emulator, I can set the rule for Firestore like this</p>
  <pre><code>{
    &quot;firestore&quot;: {
      &quot;rules&quot;: &quot;./functions/firestore.rules&quot;
    },
    &quot;functions&quot;: {
      &quot;predeploy&quot;: [
        &quot;npm --prefix \&quot;$RESOURCE_DIR\&quot; run lint&quot;,
        &quot;npm --prefix \&quot;$RESOURCE_DIR\&quot; run build&quot;
      ]
    },
    &quot;emulators&quot;: {
      &quot;auth&quot;: {
        &quot;port&quot;: 9099
      },
      &quot;functions&quot;: {
        &quot;port&quot;: 5001
      },
      &quot;firestore&quot;: {
        &quot;port&quot;: 8080
      },
      &quot;storage&quot;: {
        &quot;port&quot;: 9199
      },
      &quot;ui&quot;: {
        &quot;enabled&quot;: true
      }
    }
  }
  </code></pre>
  <p>I believe I have to set the rule for storage in here. But I don't know how. I can't find the docs for this</p>