title: 'darwin-arm64v8' binaries cannot be used on the 'darwin-x64' platform
body: <p>I am trying to deploy functions to firebase using my Mac M1, for which it was required to do an <code>npm install</code> to install packages in <code>node_modules/</code>.
  I am getting this error:</p>
  <pre><code>Error: 'darwin-arm64v8' binaries cannot be used on the 'darwin-x64' platform. Please remove the 'node_modules/sharp' directory and run 'npm install' on the 'darwin-x64' platform.
      at Object.hasVendoredLibvips (/Users/ali/Desktop/tajir/backend-mvp/appengine/back-end-flex/node_modules/sharp/lib/libvips.js:80:13)
      at Object.&lt;anonymous&gt; (/Users/ali/Desktop/tajir/backend-mvp/appengine/back-end-flex/node_modules/sharp/lib/constructor.js:7:22)
      at Module._compile (internal/modules/cjs/loader.js:1136:30)
      at Module._compile (pkg/prelude/bootstrap.js:1394:32)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1156:10)
      at Module.load (internal/modules/cjs/loader.js:984:32)
      at Function.Module._load (internal/modules/cjs/loader.js:877:14)
      at Module.require (internal/modules/cjs/loader.js:1024:19)
      at Module.require (pkg/prelude/bootstrap.js:1338:31)
      at require (internal/modules/cjs/helpers.js:72:18)
  
  </code></pre>